mirror of https://github.com/status-im/nim-eth.git
Add accessor for the discv5 listening address (Protocol.bindAddress)
This commit is contained in:
parent
9f2f101070
commit
5327565f95
|
@ -928,6 +928,9 @@ proc newProtocol*(privKey: PrivateKey,
|
|||
routingTable: RoutingTable.init(node, DefaultBitsPerHop, tableIpLimits, rng),
|
||||
rng: rng)
|
||||
|
||||
template listeningAddress*(p: Protocol): Address =
|
||||
p.bindAddress
|
||||
|
||||
proc open*(d: Protocol) {.raises: [Defect, CatchableError].} =
|
||||
info "Starting discovery node", node = d.localNode,
|
||||
bindAddress = d.bindAddress
|
||||
|
|
Loading…
Reference in New Issue