1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 01_fix_proxy.dpatch by Nicolas Baradakis <nbk@sitadelle.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix proxy port setting
6
## DP: dpatch'd by Mark Hymers <mark@hymers.org.uk>
10
diff -u -r1.36.2.6.2.2 mainconfig.c
11
--- old/src/main/mainconfig.c 18 Apr 2006 17:26:26 -0000 1.36.2.6.2.2
12
+++ new/src/main/mainconfig.c 18 Sep 2006 11:30:26 -0000
15
if ((authhost = cf_section_value_find(cs, "authhost")) == NULL) {
16
c->ipaddr = htonl(INADDR_NONE);
17
- c->auth_port = auth_port;
20
if ((s = strchr(authhost, ':')) != NULL) {
22
c->auth_port = atoi(s);
24
- c->auth_port = auth_port;
25
+ c->auth_port = PW_AUTH_UDP_PORT;
27
if (strcmp(authhost, "LOCAL") == 0) {
32
c->ipaddr = htonl(INADDR_NONE);
33
- c->auth_port = auth_port;
36
c->ipaddr = ip_getaddr(authhost);
37
if (c->ipaddr == htonl(INADDR_NONE)) {
40
c->acct_port = atoi(s);
42
- c->acct_port = auth_port + 1;
43
+ c->acct_port = PW_ACCT_UDP_PORT;
45
if (strcmp(accthost, "LOCAL") == 0) {