git ssb

3+

cel / ssb-npm-registry



Commit cb145fa7a81037891d845ed9013a983ffd41ee7b

Don't use localhost:8989 if sbot is remote

cel committed on 11/24/2018, 1:05:10 AM
Parent: 6cf11aea197620cf3dfafc1339bfa646faca7620

Files changed

index.jschanged
index.jsView
@@ -524,8 +524,9 @@
524524 : this.baseUrl + '/-/blobs/get/'
525525 }
526526
527527 Req.prototype.isLocal = function () {
528 + if (this.server.config.host && this.server.config.host !== 'localhost') return false
528529 var remoteAddr = this.req.socket.remoteAddress
529530 return remoteAddr === '::1'
530531 || remoteAddr === '::ffff:127.0.0.1'
531532 || remoteAddr === '127.0.0.1'

Built with git-ssb-web