chore: update go-libp2p to v0.27.1

This commit is contained in:
Marten Seemann
2023-05-10 11:54:47 +03:00
parent ceb3f1e41e
commit b414124e5e
8 changed files with 111 additions and 141 deletions
+1 -13
View File
@@ -143,19 +143,7 @@ func (a *NetAPI) NetAutoNatStatus(ctx context.Context) (i api.NatInfo, err error
}, nil
}
var maddr string
if autonat.Status() == network.ReachabilityPublic {
pa, err := autonat.PublicAddr()
if err != nil {
return api.NatInfo{}, err
}
maddr = pa.String()
}
return api.NatInfo{
Reachability: autonat.Status(),
PublicAddr: maddr,
}, nil
return api.NatInfo{Reachability: autonat.Status()}, nil
}
func (a *NetAPI) NetAgentVersion(ctx context.Context, p peer.ID) (string, error) {