From e5668687ab9257cc6de6c13fb106339ef708f2a4 Mon Sep 17 00:00:00 2001 From: luojia Date: Sun, 13 Aug 2023 20:29:05 +0800 Subject: [PATCH] Doc: fix script example error (#2876) --- docs/premium/script.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/premium/script.md b/docs/premium/script.md index fbfb3ed..79b3e6b 100644 --- a/docs/premium/script.md +++ b/docs/premium/script.md @@ -18,9 +18,10 @@ mode: Script script: code: | def main(ctx, metadata): - ip = metadata["dst_ip"] = ctx.resolve_ip(metadata["host"]) + ip = ctx.resolve_ip(metadata["host"]) if ip == "": return "DIRECT" + metadata["dst_ip"] = ip code = ctx.geoip(ip) if code == "LAN" or code == "CN":