~deavmi/butterflyd

4692bcaa368455cc8384ab89a7dc39bf7a3717a8 — Tristan B. Kildaire 6 months ago f1756e2 v0.0.31
Added port to configuration
2 files changed, 4 insertions(+), 2 deletions(-)

M butterflyd.json
M source/app.d
M butterflyd.json => butterflyd.json +2 -1
@@ 1,4 1,5 @@
{
    "domain" : "10.0.0.9:2222",
    "address" : "0.0.0.0"
    "address" : "0.0.0.0",
    "port" : "6969"
}
\ No newline at end of file

M source/app.d => source/app.d +2 -1
@@ 4,6 4,7 @@ import server.server : ButterflyServer;
import std.socket : Address, parseAddress;
import std.file;
import std.json;
import std.conv;

void main()
{


@@ 21,6 22,6 @@ void main()
	config = parseJSON(cast(string)bytes);

	/* Start the server */
	Address address = parseAddress(config["address"].str(), 6969);
	Address address = parseAddress(config["address"].str(), to!(ushort)(config["port"].str()));
	ButterflyServer server = new ButterflyServer(address, config["domain"].str());
}