diff --git a/config/config.go b/config/config.go index ae4b7ae..9c6674e 100644 --- a/config/config.go +++ b/config/config.go @@ -18,7 +18,7 @@ type Global struct { LogLevel string `mapstructure:"log_level" default:"info"` // We use DirectTcpCheckUrl to check (tcp)*(ipv4/ipv6) connectivity for direct. //DirectTcpCheckUrl string `mapstructure:"direct_tcp_check_url" default:"http://www.qualcomm.cn/generate_204"` - TcpCheckUrl string `mapstructure:"tcp_check_url" default:"http://cp.cloudflare.com"` + TcpCheckUrl string `mapstructure:"tcp_check_url" default:"http://captive.apple.com"` UdpCheckDns string `mapstructure:"udp_check_dns" default:"dns.google:53"` CheckInterval time.Duration `mapstructure:"check_interval" default:"30s"` CheckTolerance time.Duration `mapstructure:"check_tolerance" default:"0"` diff --git a/example.dae b/example.dae index ff67cb8..ef95e8e 100644 --- a/example.dae +++ b/example.dae @@ -8,7 +8,8 @@ global { # Node connectivity check. # Host of URL should have both IPv4 and IPv6 if you have double stack in local. - tcp_check_url: 'http://cp.cloudflare.com' + # Considering traffic consumption, it is recommended to choose a site with less response. + tcp_check_url: 'http://captive.apple.com' # This DNS will be used to check UDP connectivity of nodes. And if dns_upstream below contains tcp, it also be used to check # TCP DNS connectivity of nodes. diff --git a/go.mod b/go.mod index 6c67987..9860224 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/gorilla/websocket v1.5.0 github.com/json-iterator/go v1.1.12 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 - github.com/mzz2017/softwind v0.0.0-20230212090240-561c250bc5c4 + github.com/mzz2017/softwind v0.0.0-20230213075606-e58b03d6ac4b github.com/safchain/ethtool v0.0.0-20230116090318-67cc41908669 github.com/sirupsen/logrus v1.9.0 github.com/spf13/cobra v1.6.1 diff --git a/go.sum b/go.sum index 03fa89e..237cc68 100644 --- a/go.sum +++ b/go.sum @@ -69,8 +69,8 @@ github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/mzz2017/disk-bloom v1.0.1 h1:rEF9MiXd9qMW3ibRpqcerLXULoTgRlM21yqqJl1B90M= github.com/mzz2017/disk-bloom v1.0.1/go.mod h1:JLHETtUu44Z6iBmsqzkOtFlRvXSlKnxjwiBRDapizDI= -github.com/mzz2017/softwind v0.0.0-20230212090240-561c250bc5c4 h1:f7nqFcMs8LaM/eLRHGeuMk/urv/U+AMNKjFylwowlwU= -github.com/mzz2017/softwind v0.0.0-20230212090240-561c250bc5c4/go.mod h1:K1nXwtBokwEsfOfdT/5zV6R8QabGkyhcR0iuTrRZcYY= +github.com/mzz2017/softwind v0.0.0-20230213075606-e58b03d6ac4b h1:Hwx9RlLBGWWzr8M3zIoL5bnrhPiT3mHDkawkuCb1E7Q= +github.com/mzz2017/softwind v0.0.0-20230213075606-e58b03d6ac4b/go.mod h1:K1nXwtBokwEsfOfdT/5zV6R8QabGkyhcR0iuTrRZcYY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=