diff --git a/butterflyd.json b/butterflyd.json index b24ef76..88a39ee 100644 --- a/butterflyd.json +++ b/butterflyd.json @@ -1,5 +1,5 @@ { "domain" : "10.0.0.9:2222", "address" : "0.0.0.0", - "port" : "6969" + "port" : 6969 } \ No newline at end of file diff --git a/source/app.d b/source/app.d index fb603e8..734c35e 100644 --- a/source/app.d +++ b/source/app.d @@ -22,6 +22,6 @@ void main() config = parseJSON(cast(string)bytes); /* Start the server */ - Address address = parseAddress(config["address"].str(), to!(ushort)(config["port"].str())); + Address address = parseAddress(config["address"].str(), cast(ushort)config["port"].uinteger()); ButterflyServer server = new ButterflyServer(address, config["domain"].str()); }