Skip to content

Commit 6365ea7

Browse files
committed
append announce
1 parent 94e6094 commit 6365ea7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/P2P/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export class OceanP2P extends EventEmitter {
316316
listen: bindInterfaces,
317317
announceFilter: (multiaddrs: any[]) =>
318318
multiaddrs.filter((m) => this.shouldAnnounce(m)),
319-
announce: config.p2pConfig.announceAddresses
319+
appendAnnounce: config.p2pConfig.announceAddresses
320320
}
321321
} else {
322322
addresses = {
@@ -360,7 +360,9 @@ export class OceanP2P extends EventEmitter {
360360
dcutr: dcutr(),
361361
keychain: keychain(),
362362
http: http(),
363-
autoTLS: autoTLS()
363+
autoTLS: autoTLS({
364+
autoConfirmAddress: true
365+
})
364366
}
365367

366368
// eslint-disable-next-line no-constant-condition, no-self-compare

0 commit comments

Comments
 (0)