git ssb

1+

Dominic / ssb-config



Commit 59d46ec92fa95069df470acc0acaf7996142446a

Use port override in connections config

Christian Bundy committed on 9/29/2018, 5:40:21 PM
Parent: 0f9fbb0f4caade15d77f5de7ab6ba5325c0fa7b9

Files changed

inject.jschanged
inject.jsView
@@ -11,16 +11,17 @@
1111
1212 module.exports = function (name, override) {
1313 name = name || 'ssb'
1414 var HOME = home() || 'browser' //most probably browser
15 + var port = override.port || 8008
1516 return RC(name || 'ssb', merge({
1617 //just use an ipv4 address by default.
1718 //there have been some reports of seemingly non-private
1819 //ipv6 addresses being returned and not working.
1920 //https://github.com/ssbc/scuttlebot/pull/102
2021 party: true,
2122 host: nonPrivate.v4 || '',
22- port: 8008,
23 + port: port,
2324 timeout: 0,
2425 pub: true,
2526 local: true,
2627 friends: {
@@ -34,9 +35,9 @@
3435 connections: 3
3536 },
3637 connections: {
3738 incoming: {
38- net: [{ port: 8008, scope: "public", "transform": "shs" }]
39 + net: [{ port: port, scope: "public", "transform": "shs" }]
3940 },
4041 outgoing: {
4142 net: [{ transform: "shs" }]
4243 }

Built with git-ssb-web