Skip to content

Commit ec249dc

Browse files
global.Pear?.config.dht?.nodes (#200)
* global.Pear?.config.dht.nodes * exports.BOOTSTRAP_NODES * One liner
1 parent d96250b commit ec249dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/constants.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ const COMMANDS = exports.COMMANDS = {
1313
IMMUTABLE_GET: 9
1414
}
1515

16-
exports.BOOTSTRAP_NODES = [
16+
exports.BOOTSTRAP_NODES = global.Pear?.config.dht?.bootstrap || [
1717
1818
1919
2020
]
2121

22-
exports.KNOWN_NODES = global.Pear?.config.dht || []
22+
exports.KNOWN_NODES = global.Pear?.config.dht?.nodes || []
2323

2424
exports.FIREWALL = {
2525
UNKNOWN: 0,

0 commit comments

Comments
 (0)