M butterflyd.json => butterflyd.json +1 -1
@@ 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
M source/app.d => source/app.d +1 -1
@@ 22,6 22,6 @@ void main()
config = parseJSON(cast(string)bytes);
/* Start the server */
- Address address = parseAddress(config["address"].str(), cast(ushort)config["port"].uinteger());
+ Address address = parseAddress(config["address"].str(), to!(ushort)(config["port"].str()));
ButterflyServer server = new ButterflyServer(address, config["domain"].str());
}