]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: tools: make str2sa_range() report unresolvable addresses
authorWilly Tarreau <w@1wt.eu>
Tue, 8 Sep 2015 14:01:25 +0000 (16:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Sep 2015 14:01:25 +0000 (16:01 +0200)
commit9f69f46d1f1b1d116c00b4b0483c519747f977b7
tree30aa5c905ca4646d93b5c4598463fcf5f940e5d6
parent72b8c1f0aa1dba22112a84bf5fe17bcae30d062f
BUG/MINOR: tools: make str2sa_range() report unresolvable addresses

If an environment variable is used in an address, and is not set, it's
silently considered as ":" or "0.0.0.0:0" which is not correct as it
can hide environment issues and lead to unexpected behaviours. Let's
report this case when it happens.

This fix should be backported to 1.5.
src/standard.c