summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2008-01-23 15:56:39 +0000
committererdgeist <>2008-01-23 15:56:39 +0000
commitbe82ccedeb730c1a7035789aedcbc4fe7fe0fee3 (patch)
treed0b670ea1d426ced910f4a36d1042b1a72913f4d
parent48632ae025a56f8e8b61eac8314a663e440d1a74 (diff)
We did not obey user specified port
-rwxr-xr-xvchat-client.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vchat-client.c b/vchat-client.c
index a67875b..389c486 100755
--- a/vchat-client.c
+++ b/vchat-client.c
@@ -514,10 +514,8 @@ main (int argc, char **argv)
514 loadformats(GLOBAL_FORMAT_FILE); 514 loadformats(GLOBAL_FORMAT_FILE);
515 loadformats(getstroption (CF_FORMFILE)); 515 loadformats(getstroption (CF_FORMFILE));
516 516
517 if (!getintoption(CF_USESSL)) 517 if ( !getintoption(CF_USESSL) && !strcmp(getstroption(CF_SERVERPORT),"2325"))
518 setstroption(CF_SERVERPORT,"2323"); 518 setstroption(CF_SERVERPORT,"2323");
519 else
520 setstroption(CF_SERVERPORT,"2325");
521 519
522 /* install signal handler */ 520 /* install signal handler */
523 signal (SIGINT, cleanup); 521 signal (SIGINT, cleanup);