mirror of https://github.com/schollz/croc.git
show ping
This commit is contained in:
parent
d3aa2be9ab
commit
bf9ebfc4b4
|
@ -544,6 +544,7 @@ func (c *Client) Receive() (err error) {
|
|||
}
|
||||
address := net.JoinHostPort(discoveries[0].Address, portToUse)
|
||||
if tcp.PingServer(address) == nil {
|
||||
log.Debugf("succesfully pinged '%s'", address)
|
||||
c.Options.RelayAddress = address
|
||||
c.ExternalIPConnected = c.Options.RelayAddress
|
||||
c.Options.RelayAddress6 = ""
|
||||
|
|
Loading…
Reference in New Issue