Commit cb145fa7a81037891d845ed9013a983ffd41ee7b
Don't use localhost:8989 if sbot is remote
cel committed on 11/24/2018, 1:05:10 AMParent: 6cf11aea197620cf3dfafc1339bfa646faca7620
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -524,8 +524,9 @@ | |||
524 | 524 … | : this.baseUrl + '/-/blobs/get/' | |
525 | 525 … | } | |
526 | 526 … | ||
527 | 527 … | Req.prototype.isLocal = function () { | |
528 … | + if (this.server.config.host && this.server.config.host !== 'localhost') return false | ||
528 | 529 … | var remoteAddr = this.req.socket.remoteAddress | |
529 | 530 … | return remoteAddr === '::1' | |
530 | 531 … | || remoteAddr === '::ffff:127.0.0.1' | |
531 | 532 … | || remoteAddr === '127.0.0.1' |
Built with git-ssb-web