mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-20 20:46:31 +00:00
feat: auto relay network query for new relays
This commit is contained in:
committed by
Vasco Santos
parent
55020056ee
commit
0bf0b7cf89
12
src/circuit/constants.js
Normal file
12
src/circuit/constants.js
Normal file
@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
const minute = 60 * 1000
|
||||
|
||||
module.exports = {
|
||||
ADVERTISE_BOOT_DELAY: 15 * minute,
|
||||
ADVERTISE_TTL: 30 * minute,
|
||||
CIRCUIT_PROTO_CODE: 290,
|
||||
HOP_METADATA_KEY: 'hop_relay',
|
||||
HOP_METADATA_VALUE: 'true',
|
||||
RELAY_RENDEZVOUS_NS: '/libp2p/relay'
|
||||
}
|
Reference in New Issue
Block a user