Commits

Jan Lahoda committed c22f16e

When using random port number, bind to localhost only

  • Participants
  • Parent commits ff156f1

Comments (0)

Files changed (1)

remoting/server/web/web.main/src/web/main/WebMain.java

         } else {
             gws = new GrizzlyWebServer(port);
         }
+        
+        if (port == 0) {
+            gws.getSelectorThread().setAddress(InetAddress.getByName("localhost"));
+        }
 
         // Jersey web resources
         ServletAdapter jerseyAdapter = new ServletAdapter();