mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-14 17:51:22 +00:00
feat: address manager
This commit is contained in:
@ -127,11 +127,13 @@ class TransportManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts listeners for each given Multiaddr.
|
||||
* Starts listeners for each listen Multiaddr.
|
||||
* Update listen multiaddrs of the Address Manager after the operation.
|
||||
* @async
|
||||
* @param {Multiaddr[]} addrs
|
||||
*/
|
||||
async listen (addrs) {
|
||||
async listen () {
|
||||
const addrs = this.libp2p.addressManager.getListenMultiaddrs()
|
||||
|
||||
if (addrs.length === 0) {
|
||||
log('no addresses were provided for listening, this node is dial only')
|
||||
return
|
||||
|
Reference in New Issue
Block a user