summaryrefslogtreecommitdiffstats
path: root/ProtoProxy/ProtoProxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ProtoProxy/ProtoProxy.cpp4
1 files changed, 3 insertions, 1 deletions
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);