added configvariable bindaddress (thanks FrozenCow)

This commit is contained in:
flames 2011-01-06 04:55:21 +01:00 committed by FrozenCow
parent 8162817041
commit b4fca31cd5
2 changed files with 5 additions and 1 deletions

View file

@ -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);