Changed configuration to key/value instead of full YAML.

This commit is contained in:
FrozenCow 2011-01-18 20:08:05 +01:00
parent 9b8a90bf9f
commit b27fcdbd4b
2 changed files with 17 additions and 14 deletions

View file

@ -29,8 +29,8 @@ public class WebServer extends Thread {
this.server = server;
this.debugger = debugger;
String bindAddress = configuration.getString("webserver/bindaddress", "0.0.0.0");
int port = configuration.getInt("webserver/port", 8123);
String bindAddress = configuration.getString("webserver-bindaddress", "0.0.0.0");
int port = configuration.getInt("webserver-port", 8123);
sock = new ServerSocket(port, 5, bindAddress.equals("0.0.0.0") ? null : InetAddress.getByName(bindAddress));
running = true;