Bug 1350887 - Warn when non-loopback connections are allowed; r=whimboo

MozReview-Commit-ID: LG8f5q5QbD6
This commit is contained in:
Andreas Tolfsen committed 2017-03-28 17:06:06 +01:00
1 parent c8ab8f3b72
commit 62cba7679b
1 file changed
+2
+2
View File
@@ -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);