~deavmi/butterflyd

ad5ee5a9ae579feddd750c3d5ebd4ca8fdaff7b6 — Tristan B. Kildaire 6 months ago cea2a00 master v0.0.33
Fix runtime JSON error
2 files changed, 2 insertions(+), 2 deletions(-)

M butterflyd.json
M source/app.d
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());
}