Commit 59d46ec92fa95069df470acc0acaf7996142446a
Use port override in connections config
Christian Bundy committed on 9/29/2018, 5:40:21 PMParent: 0f9fbb0f4caade15d77f5de7ab6ba5325c0fa7b9
Files changed
inject.js | changed |
inject.js | |||
---|---|---|---|
@@ -11,16 +11,17 @@ | |||
11 | 11 … | ||
12 | 12 … | module.exports = function (name, override) { | |
13 | 13 … | name = name || 'ssb' | |
14 | 14 … | var HOME = home() || 'browser' //most probably browser | |
15 … | + var port = override.port || 8008 | ||
15 | 16 … | return RC(name || 'ssb', merge({ | |
16 | 17 … | //just use an ipv4 address by default. | |
17 | 18 … | //there have been some reports of seemingly non-private | |
18 | 19 … | //ipv6 addresses being returned and not working. | |
19 | 20 … | //https://github.com/ssbc/scuttlebot/pull/102 | |
20 | 21 … | party: true, | |
21 | 22 … | host: nonPrivate.v4 || '', | |
22 | - port: 8008, | ||
23 … | + port: port, | ||
23 | 24 … | timeout: 0, | |
24 | 25 … | pub: true, | |
25 | 26 … | local: true, | |
26 | 27 … | friends: { | |
@@ -34,9 +35,9 @@ | |||
34 | 35 … | connections: 3 | |
35 | 36 … | }, | |
36 | 37 … | connections: { | |
37 | 38 … | incoming: { | |
38 | - net: [{ port: 8008, scope: "public", "transform": "shs" }] | ||
39 … | + net: [{ port: port, scope: "public", "transform": "shs" }] | ||
39 | 40 … | }, | |
40 | 41 … | outgoing: { | |
41 | 42 … | net: [{ transform: "shs" }] | |
42 | 43 … | } |
Built with git-ssb-web