From 3ac98f3f26e4893c96a7dc149684bc3df15e753e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 20 Oct 2012 21:52:34 +0000 Subject: ProtoProxy: ListenPort and ConnectPort are now settable on commandline, the defaults have switched (listens on 25564, connects to localhost:25565) git-svn-id: http://mc-server.googlecode.com/svn/trunk@992 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- ProtoProxy/ProtoProxy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ProtoProxy/ProtoProxy.cpp') diff --git a/ProtoProxy/ProtoProxy.cpp b/ProtoProxy/ProtoProxy.cpp index abc4a7606..0d61835e7 100644 --- a/ProtoProxy/ProtoProxy.cpp +++ b/ProtoProxy/ProtoProxy.cpp @@ -12,8 +12,10 @@ int main(int argc, char ** argv) { + int ListenPort = (argc > 1) ? atoi(argv[1]) : 25564; + int ConnectPort = (argc > 2) ? atoi(argv[2]) : 25565; cServer Server; - int res = Server.Init(25565, 25564); + int res = Server.Init(ListenPort, ConnectPort); if (res != 0) { printf("Server initialization failed: %d", res); -- cgit v1.2.3