added configvariable bindaddress (thanks FrozenCow)
This commit is contained in:
parent
8162817041
commit
b4fca31cd5
2 changed files with 5 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ public class WebServer extends Thread {
|
|||
public WebServer(int port, MapManager mgr) throws IOException
|
||||
{
|
||||
this.mgr = mgr;
|
||||
sock = new ServerSocket(port, 5, InetAddress.getByName("127.0.0.1"));
|
||||
sock = new ServerSocket(port, 5, mgr.bindaddress.equals("0.0.0.0") ? null : InetAddress.getByName(mgr.bindaddress));
|
||||
running = true;
|
||||
start();
|
||||
log.info("map WebServer started on port " + port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue