Skip to content

Commit

Permalink
Remove ping check failed completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortless authored Oct 10, 2022
1 parent f0e392b commit 42d6ae8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 42d6ae8

Please sign in to comment.