From: Krzysztof Piotr Oledzki Date: Tue, 27 Jan 2009 15:57:08 +0000 (+0100) Subject: [BUG] Fix listen & more of 2 couples : X-Git-Tag: v1.3.14.12~8 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=91e0ca0ff71e789a1296139104063e3f6b5dbf34;p=haproxy.git [BUG] Fix listen & more of 2 couples : Fix "listen www-mutualise 80.248.x.y1:80,80.248.x.y2:80,80.248.x.y3:80": [ALERT] 309/161509 (15450) : Invalid server address: '80.248.x.y1:80,80.248.x.y2' [ALERT] 309/161509 (15450) : Error reading configuration file : /etc/haproxy/haproxy.cfg Bug reported by Laurent Dolosor. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index e6a195846..1b3701df2 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -144,7 +144,7 @@ static struct listener *str2listener(char *str, struct listener *tail) str = next; /* 1) look for the end of the first address */ - if ((next = strrchr(str, ',')) != NULL) { + if ((next = strchr(str, ',')) != NULL) { *next++ = 0; }