10.10.10.1 -> 10.10.0.1

This commit is contained in:
huangsimin 2019-01-02 18:58:28 +08:00
parent 0b6bd84d1c
commit ae54c08d62

View File

@ -49,9 +49,9 @@ func (pw *PingWorker) PingVPN() bool {
ses := requests.NewSession() ses := requests.NewSession()
ses.SetConfig(requests.CRequestTimeout, 5) 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 { 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.LastPingVPN, 0)
atomic.StoreInt64(&pw.LastPingVPNTime, time.Now().Unix()) atomic.StoreInt64(&pw.LastPingVPNTime, time.Now().Unix())
return false return false