diff --git a/service/core/v2ray/v2rayTmpl.go b/service/core/v2ray/v2rayTmpl.go index 68306575..f02a97a7 100644 --- a/service/core/v2ray/v2rayTmpl.go +++ b/service/core/v2ray/v2rayTmpl.go @@ -1142,7 +1142,7 @@ func (t *Template) setGroupRouting(serverData *ServerData) (err error) { probeUrl := serverData.OutboundName2Setting[outbound].ProbeURL if _, err := url.Parse(probeUrl); err != nil { log.Warn("observatory: %v", err) - probeUrl = "http://www.msftconnecttest.com/connecttest.txt" + probeUrl = "https://gstatic.com/generate_204" } t.MultiObservatory.Observers = append(t.MultiObservatory.Observers, coreObj.ObservatoryItem{ Tag: outbound, diff --git a/service/db/configure/configure.go b/service/db/configure/configure.go index 40213301..c67bbc91 100644 --- a/service/db/configure/configure.go +++ b/service/db/configure/configure.go @@ -401,7 +401,7 @@ func GetOutboundSetting(outbound string) (setting OutboundSetting) { err := db.Get(fmt.Sprintf("outbound.%v", outbound), "setting", &setting) if err != nil { return OutboundSetting{ - ProbeURL: "http://www.msftconnecttest.com/connecttest.txt", + ProbeURL: "https://gstatic.com/generate_204", ProbeInterval: "10s", Type: LeastPing, } diff --git a/service/server/service/latency.go b/service/server/service/latency.go index e95dad60..9e9b9dcf 100644 --- a/service/server/service/latency.go +++ b/service/server/service/latency.go @@ -19,7 +19,7 @@ import ( "time" ) -const HttpTestURL = "http://www.msftconnecttest.com/connecttest.txt" +const HttpTestURL = "https://gstatic.com/generate_204" func Ping(which []*configure.Which, timeout time.Duration) (_ []*configure.Which, err error) { var whiches = configure.NewWhiches(which)