]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: log-forward: use "dgram-bind" instead of "bind" for the listener
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 13:07:22 +0000 (15:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 13:07:22 +0000 (15:07 +0200)
The use of "bind" wasn't that wise but was temporary. The problem is that
it will not allow to coexist with tcp. Let's explicitly call it "dgram-bind"
so that datagram listeners are expected here, leaving some room for stream
listeners later. This is the only change.

doc/configuration.txt
src/log.c

index 075d3d5c8acdb438ccea89f87c80a6c2dcdd6aec..af3c63415560ade1f13c6f4883b0e92e9e59991a 100644 (file)
@@ -2749,11 +2749,12 @@ haproxy will forward all received log messages to a log servers list.
 log-forward <name>
   Creates a new log forwarder proxy identified as <name>.
 
-bind <addr> [param*]
-  Used to configure a log udp listener to receive messages to forward.
-  Only udp listeners are allowed, address must be prefixed using
-  'udp@', 'udp4@' or 'udp6@'. This supports for all "bind" parameters
-  found in 5.1 paragraph but most of them are irrelevant for udp/syslog case.
+dgram-bind <addr> [param*]
+  Used to configure a UDP log listener to receive messages to forward. Only UDP
+  listeners are allowed, the address must be prefixed using "udp@", "udp4@" or
+  "udp6@". This supports for some of the "bind" parameters found in 5.1
+  paragraph among which "interface", "namespace" or "transparent", the other
+  ones being silently ignored as irrelevant for UDP/syslog case.
 
 log global
 log <address> [len <length>] [format <format>] [sample <ranges>:<smp_size>]
index e8b172d48f22504d3804007a89c1434e782bd46a..984a31a262d4a23118822fd59e5733a1e1c4689e 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -3610,7 +3610,7 @@ int cfg_parse_log_forward(const char *file, int linenum, char **args, int kwm)
                px->id = strdup(args[1]);
 
        }
-       else if (strcmp(args[0], "bind") == 0) {
+       else if (strcmp(args[0], "dgram-bind") == 0) {
                int cur_arg;
                static int kws_dumped;
                struct bind_conf *bind_conf;