In practice, when start the sing-box app. If we directly access reddit.com, which defined as should route via WARP here in given config.json, it cost 60s to finally load in web page. However, if we execute curl -fsSL https://ipinfo.io/ip, before access reddit.com, it cost only 3 seconds, due to curl -fsSL https://ipinfo.io/ip trigger the endpoints started.
{
"log": {
"level": "warn",
"timestamp": true
},
"experimental": {
"cache_file": {
"enabled": true,
"store_rdrc": true
}
},
"dns": {
"servers": [
{
"tag": "remote",
"address": "https://1.0.0.1/dns-query",
"address_resolver": "local",
"client_subnet": "1.0.1.0",
"detour": "Proxy"
},
{
"tag": "local",
"address": "udp://119.29.29.29",
"detour": "direct-out"
}
],
"rules": [
{
"outbound": "any",
"server": "local",
"action": "route"
},
{
"action": "route-options",
"domain": [
"*"
],
"rewrite_ttl": 64,
"udp_connect": false,
"udp_disable_domain_unmapping": false
},
{
"rule_set": "geosite-geolocation-cn",
"server": "local",
"action": "route"
},
{
"type": "logical",
"mode": "and",
"rules": [
{
"rule_set": "geosite-geolocation-!cn",
"invert": true
},
{
"rule_set": "geoip-cn"
}
],
"server": "remote",
"client_subnet": "114.114.114.114/24"
}
],
"strategy": "ipv4_only",
"final": "remote",
"reverse_mapping": true,
"disable_cache": false,
"disable_expire": false
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"address": [
"172.19.0.0/30",
"fdfe:dcba:9876::0/126"
],
"mtu": 1492,
"auto_route": true,
"strict_route": true,
"stack": "gvisor"
}
],
"endpoints": [
{
"tag": "WARP",
"type": "wireguard",
"address": [
"172.16.0.2/32",
"2606:4700:110:864e:8987:3712:f9cc:f59d/128"
],
"private_key": "xxxxx",
"peers": [
{
"address": "162.159.192.1",
"port": 2408,
"public_key": "xxxxxxxxxxxxx",
"allowed_ips": [
"0.0.0.0/0"
],
"persistent_keepalive_interval": 30,
"reserved": [107, 160, 239]
}
],
"mtu": 1408,
"udp_fragment": true,
"detour": "Proxy"
}
],
"outbounds": [
{
"tag": "direct-out",
"type": "direct",
"udp_fragment": true
},
{
"tag": "Proxy",
"type": "hysteria2",
"server": "example.com",
"server_port": 443,
"up_mbps": 500,
"down_mbps": 500,
"password": "password",
"connect_timeout": "5s",
"tcp_fast_open": true,
"tls": {
"enabled": true,
"server_name": "example.com",
"alpn": [
"h3"
]
}
}
],
"route": {
"final": "Proxy",
"auto_detect_interface": true,
"rules": [
{
"inbound": "tun-in",
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"protocol": [
"BitTorrent"
],
"outbound": "direct-out"
},
{
"rule_set": [
"geoip-cn",
"geosite-geolocation-cn"
],
"outbound": "direct-out"
},
{
"ip_is_private": true,
"outbound": "direct-out"
},
{
"domain": [
"whatismyipaddress.com",
"ipinfo.io",
"reddit.com"
],
"outbound": "WARP"
},
{
"ip_cidr": [
"0.0.0.0/8",
"10.0.0.0/8",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.168.0.0/16",
"224.0.0.0/4",
"240.0.0.0/4",
"52.80.0.0/16"
],
"outbound": "direct-out"
},
{
"rule_set": "geosite-geolocation-!cn",
"outbound": "Proxy"
}
],
"rule_set": [
{
"tag": "geosite-geolocation-cn",
"type": "remote",
"format": "binary",
"url": "https://testingcf.jsdelivr.net/gh/lyc8503/sing-box-rules@rule-set-geosite/geosite-geolocation-cn.srs",
"download_detour": "direct-out"
},
{
"tag": "geosite-geolocation-!cn",
"type": "remote",
"format": "binary",
"url": "https://testingcf.jsdelivr.net/gh/lyc8503/sing-box-rules@rule-set-geosite/geosite-geolocation-!cn.srs",
"download_detour": "direct-out"
},
{
"tag": "geoip-cn",
"type": "remote",
"format": "binary",
"url": "https://testingcf.jsdelivr.net/gh/lyc8503/sing-box-rules@rule-set-geoip/geoip-cn.srs",
"download_detour": "direct-out"
}
]
}
}
Operating system
macOS
System version
15.3.1
Installation type
sing-box for macOS Graphical Client
If you are using a graphical client, please provide the version of the client.
1.11.4
Version
Description
When have
endpointsin client side, it will not start instantly but wait for the incoming request, which leads a long time wait (~60s) on web browser, especially when connect to warp network.In practice, when start the sing-box app. If we directly access
reddit.com, which defined as should route viaWARPhere in givenconfig.json, it cost60sto finally load in web page. However, if we executecurl -fsSL https://ipinfo.io/ip, before accessreddit.com, it cost only 3 seconds, due tocurl -fsSL https://ipinfo.io/iptrigger theendpointsstarted.Reproduction
config.json
{ "log": { "level": "warn", "timestamp": true }, "experimental": { "cache_file": { "enabled": true, "store_rdrc": true } }, "dns": { "servers": [ { "tag": "remote", "address": "https://1.0.0.1/dns-query", "address_resolver": "local", "client_subnet": "1.0.1.0", "detour": "Proxy" }, { "tag": "local", "address": "udp://119.29.29.29", "detour": "direct-out" } ], "rules": [ { "outbound": "any", "server": "local", "action": "route" }, { "action": "route-options", "domain": [ "*" ], "rewrite_ttl": 64, "udp_connect": false, "udp_disable_domain_unmapping": false }, { "rule_set": "geosite-geolocation-cn", "server": "local", "action": "route" }, { "type": "logical", "mode": "and", "rules": [ { "rule_set": "geosite-geolocation-!cn", "invert": true }, { "rule_set": "geoip-cn" } ], "server": "remote", "client_subnet": "114.114.114.114/24" } ], "strategy": "ipv4_only", "final": "remote", "reverse_mapping": true, "disable_cache": false, "disable_expire": false }, "inbounds": [ { "type": "tun", "tag": "tun-in", "address": [ "172.19.0.0/30", "fdfe:dcba:9876::0/126" ], "mtu": 1492, "auto_route": true, "strict_route": true, "stack": "gvisor" } ], "endpoints": [ { "tag": "WARP", "type": "wireguard", "address": [ "172.16.0.2/32", "2606:4700:110:864e:8987:3712:f9cc:f59d/128" ], "private_key": "xxxxx", "peers": [ { "address": "162.159.192.1", "port": 2408, "public_key": "xxxxxxxxxxxxx", "allowed_ips": [ "0.0.0.0/0" ], "persistent_keepalive_interval": 30, "reserved": [107, 160, 239] } ], "mtu": 1408, "udp_fragment": true, "detour": "Proxy" } ], "outbounds": [ { "tag": "direct-out", "type": "direct", "udp_fragment": true }, { "tag": "Proxy", "type": "hysteria2", "server": "example.com", "server_port": 443, "up_mbps": 500, "down_mbps": 500, "password": "password", "connect_timeout": "5s", "tcp_fast_open": true, "tls": { "enabled": true, "server_name": "example.com", "alpn": [ "h3" ] } } ], "route": { "final": "Proxy", "auto_detect_interface": true, "rules": [ { "inbound": "tun-in", "action": "sniff" }, { "protocol": "dns", "action": "hijack-dns" }, { "protocol": [ "BitTorrent" ], "outbound": "direct-out" }, { "rule_set": [ "geoip-cn", "geosite-geolocation-cn" ], "outbound": "direct-out" }, { "ip_is_private": true, "outbound": "direct-out" }, { "domain": [ "whatismyipaddress.com", "ipinfo.io", "reddit.com" ], "outbound": "WARP" }, { "ip_cidr": [ "0.0.0.0/8", "10.0.0.0/8", "127.0.0.0/8", "169.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "224.0.0.0/4", "240.0.0.0/4", "52.80.0.0/16" ], "outbound": "direct-out" }, { "rule_set": "geosite-geolocation-!cn", "outbound": "Proxy" } ], "rule_set": [ { "tag": "geosite-geolocation-cn", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/lyc8503/sing-box-rules@rule-set-geosite/geosite-geolocation-cn.srs", "download_detour": "direct-out" }, { "tag": "geosite-geolocation-!cn", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/lyc8503/sing-box-rules@rule-set-geosite/geosite-geolocation-!cn.srs", "download_detour": "direct-out" }, { "tag": "geoip-cn", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/lyc8503/sing-box-rules@rule-set-geoip/geoip-cn.srs", "download_detour": "direct-out" } ] } }Logs
Supporter
Integrity requirements