From 42d6ae8438f93394c649c1b485e55c6c18ca34cf Mon Sep 17 00:00:00 2001 From: Fortless <64139203+Fortless@users.noreply.github.com> Date: Mon, 10 Oct 2022 18:45:38 +0300 Subject: [PATCH] Remove ping check failed completely --- proxy.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/proxy.go b/proxy.go index faf5991..be08b07 100644 --- a/proxy.go +++ b/proxy.go @@ -147,12 +147,6 @@ func (proxy *Proxy) handleLoginConnection(conn Conn, session Session) error { } rconn, err := dialer.Dial(proxyTo) - if err != nil { - log.Printf("[i] %s did not respond to ping; is the target offline?", proxyTo) - proxy.cacheOnlineStatus = true - proxy.cacheOnlineTime = time.Now() - return proxy.handleLoginRequest(conn, session) - } proxy.cacheOnlineStatus = true proxy.cacheOnlineTime = time.Now() defer rconn.Close()