cli: Fix net reachability

This commit is contained in:
Łukasz Magiera
2020-08-18 03:12:50 +02:00
parent 9db478fd2e
commit 127d6d0576
3 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -222,8 +222,8 @@ var NetReachability = &cli.Command{
}
fmt.Println("AutoNAT status: ", i.Reachability.String())
if i.PublicAddr != nil {
fmt.Println("Public address: ", i.PublicAddr.String())
if i.PublicAddr != "" {
fmt.Println("Public address: ", i.PublicAddr)
}
return nil
},