Skip to content

Commit

Permalink
Doc: fix script example error (#2876)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaJiaJiang authored Aug 13, 2023
1 parent ac3fd60 commit e566868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/premium/script.md
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit e566868

Please sign in to comment.