mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-13 23:14:46 +00:00
[BUG] Fix listen & more of 2 couples <ip>:<port>
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.
This commit is contained in:
parent
88e458a329
commit
52d522b566
@ -159,7 +159,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user