Cleanup.
This commit is contained in:
@@ -41,7 +41,7 @@ func (a *App) onPing(e PingEvent) {
|
||||
// We make sure we don't set a private address as our public address since we
|
||||
// may be connected via LAN to some peers.
|
||||
if peer.State == StateDirect {
|
||||
if dst := e.ping.Dst; addrIsRoutable(e.ping.Dst) {
|
||||
if dst := e.ping.Dst; addrIsRoutable(dst) {
|
||||
if dst.Addr().Is4() {
|
||||
if dst != a.selfV4 {
|
||||
log.Printf("Local IPv4 updated: %s -> %s", a.selfV4, dst)
|
||||
|
||||
Reference in New Issue
Block a user