mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-11 21:09:27 +00:00
remove addr policy & hole punch service
This commit is contained in:
parent
e5740c2f12
commit
e0d5c2e331
@ -143,7 +143,9 @@ proc periodicLookup(
|
||||
|
||||
# For testing lets use only one hard-coded service
|
||||
# Same as the advertised one
|
||||
discard await self.lookup("delivery")
|
||||
let peers = await self.lookup("delivery")
|
||||
|
||||
debug "lookup complete", peer_found = peers.len
|
||||
|
||||
proc new*(
|
||||
T: type WakuKademlia,
|
||||
|
||||
@ -99,9 +99,9 @@ proc newWakuSwitch*(
|
||||
.withTcpTransport(transportFlags)
|
||||
.withNameResolver(nameResolver)
|
||||
.withSignedPeerRecord(sendSignedPeerRecord)
|
||||
.withCircuitRelay(circuitRelay)
|
||||
.withServices(@[hpService])
|
||||
.withAddressPolicy(noPrivateAddressPolicy)
|
||||
#.withAddressPolicy(publicRoutableAddressPolicy)
|
||||
#.withCircuitRelay(circuitRelay)
|
||||
#.withServices(@[hpService])
|
||||
|
||||
if peerStoreCapacity.isSome():
|
||||
b = b.withPeerStore(peerStoreCapacity.get())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user