show ping

This commit is contained in:
Zack Scholl 2020-10-22 10:13:41 -07:00
parent d3aa2be9ab
commit bf9ebfc4b4
1 changed files with 1 additions and 0 deletions

View File

@ -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 = ""