From aa70f0db5e411db9fd8b00df4442aa7435825dbb Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 6 Jun 2014 09:39:18 +1000 Subject: [PATCH] Default unspecified port for proxy to 3334 --- src/connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index cfa96e3a..0a1d29d7 100644 --- a/src/connector.c +++ b/src/connector.c @@ -557,7 +557,7 @@ int connector(proc_instance_t *pi) memset(&serv_addr, 0, sizeof(serv_addr)); serv_addr.sin_family = AF_INET; serv_addr.sin_addr.s_addr = htonl(INADDR_ANY); - serv_addr.sin_port = htons(3333); + serv_addr.sin_port = htons(ckp->proxy ? 3334 : 3333); do { ret = bind(sockd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); if (!ret)