pc10201

cloudflare worker 能指定出口 ip 的国家吗?

  •  
  •   pc10201 · Apr 22 · 3100 views
    This topic created in 209 days ago, the information mentioned may be changed or developed.

    cloudflare worker 默认是根据客户端 ip 来调度的,出口 ip 一般也是靠近客户端的

    但 worker 脚本中可能要访问的网站有地域限制,比如要访问日本,但客户端是德国

    这种怎么处理?

    6 replies  •  2026-04-24 22:42:13 +08:00
    NewYear
    NewYear
    Apr 22
    1
    用日本 ip 发出请求给 workers 。
    pc10201
    pc10201
    OP
    Apr 22
    2
    @NewYear 应该是有更简单的办法
    miantiao
    miantiao
    Apr 24
    4
    我实现了,但是好多账号不能复现,会报错 https://dns.surf
    miantiao
    miantiao
    Apr 24
    5
    @miantiao 原理是使用 resolveOverride
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:13 · PVG 05:13 · LAX 13:13 · JFK 16:13
    ♥ Do have faith in what you're doing.