mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
Bug 1350887 - Warn when non-loopback connections are allowed; r=whimboo
MozReview-Commit-ID: LG8f5q5QbD6
This commit is contained in:
1 parent
c8ab8f3b72
commit
62cba7679b
1 file changed
+2
@@ -324,6 +324,8 @@ server.TCPListener = class {
|
||||
let flags = Ci.nsIServerSocket.KeepWhenOffline;
|
||||
if (this.forceLocal) {
|
||||
flags |= Ci.nsIServerSocket.LoopbackOnly;
|
||||
} else {
|
||||
logger.warn("Server socket is not limited to loopback connections");
|
||||
}
|
||||
this.listener = new ServerSocket(this.port, flags, 1);
|
||||
this.listener.asyncListen(this);
|
||||
|
||||
Reference in new issue
Block a user