~deavmi/butterflyd

4339075c8a9bd7e65492503047581a1df08ee38d — Tristan B. Kildaire 6 months ago 4692bca v0.0.32
Changed port from JSON string to JSON integer
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(), to!(ushort)(config["port"].str()));
	Address address = parseAddress(config["address"].str(), cast(ushort)config["port"].uinteger());
	ButterflyServer server = new ButterflyServer(address, config["domain"].str());
}