From ae54c08d62c4a5df2486c4aca304cd4bd9d1f240 Mon Sep 17 00:00:00 2001 From: huangsimin Date: Wed, 2 Jan 2019 18:58:28 +0800 Subject: [PATCH] 10.10.10.1 -> 10.10.0.1 --- pingworker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pingworker.go b/pingworker.go index edf04ac..579eece 100644 --- a/pingworker.go +++ b/pingworker.go @@ -49,9 +49,9 @@ func (pw *PingWorker) PingVPN() bool { ses := requests.NewSession() ses.SetConfig(requests.CRequestTimeout, 5) - _, err := ses.Get("http://10.10.10.1:3333/ippool/switch/imactive").Execute() + _, err := ses.Get("http://10.10.0.1:3333/ippool/switch/imactive").Execute() if err != nil { - log.Println("PingVPN err http://10.10.10.1:3333/ippool/switch/imactive check Network") + log.Println("PingVPN err http://10.10.0.1:3333/ippool/switch/imactive check Network") atomic.StoreInt64(&pw.LastPingVPN, 0) atomic.StoreInt64(&pw.LastPingVPNTime, time.Now().Unix()) return false