mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-27 21:09:28 +00:00
Simplify comment
This commit is contained in:
parent
cd4e4aa6f7
commit
17155488a2
@ -61,10 +61,6 @@ func getTcpPort*(ma: MultiAddress): Option[Port] =
|
||||
|
||||
proc hasPublicRelayTransport*(ma: MultiAddress): bool =
|
||||
## True when ``ma`` is a circuit address whose relay is publicly dialable.
|
||||
## A circuit address is <relay wire addr>/p2p/<relayId>/p2p-circuit; the part
|
||||
## before /p2p/ is the relay's wire address, which isPublicMA can check.
|
||||
## Unlike libp2p's publicRoutableAddressPolicy we drop non-public relays: our
|
||||
## relay path only runs on a genuine NAT, where the relay is always public.
|
||||
let relayWireStr = ($ma).split("/p2p/")[0]
|
||||
let relayWireAddr = MultiAddress.init(relayWireStr).valueOr:
|
||||
return false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user