Skip to content

Commit

Permalink
Bug 1350887 - Warn when non-loopback connections are allowed; r=whimboo
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: LG8f5q5QbD6

--HG--
extra : rebase_source : 5f97ddcb8ac5598c1a5531982b4962495257311f
  • Loading branch information
andreastt committed Mar 28, 2017
1 parent de99d73 commit be2b5e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/marionette/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be2b5e3

Please sign in to comment.