From 1d62e33b0108a1da634c1936605235635df3081d Mon Sep 17 00:00:00 2001 From: Krzysztof Piotr Oledzki Date: Tue, 27 Jan 2009 16:57:08 +0100 Subject: [PATCH] [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. --- src/cfgparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index 4da1b6771..64a001e78 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; }