MINOR: reload: determine the foreing binding status from the socket
authorWilly Tarreau <w@1wt.eu>
Wed, 26 Aug 2020 08:23:40 +0000 (10:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 26 Aug 2020 08:33:02 +0000 (10:33 +0200)
commitbf3b06b03d115883714d9e45cccfe185de490c21
tree51e626f1192f78034e242af107dc61a5ead91cc3
parentbca5a4e0a83ce12946952f32baf7a783dcc96281
MINOR: reload: determine the foreing binding status from the socket

Let's not look at the listener options passed by the original process
and determine from the socket itself whether it is configured for
transparent mode or not. This is cleaner and safer, and doesn't rely
on flag values that could possibly change between versions.
include/haproxy/proto_tcp.h
src/haproxy.c
src/proto_tcp.c