]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cfgparse: mention "interface" in the list of allowed "source" options
authorWilly Tarreau <w@1wt.eu>
Sat, 8 Dec 2012 22:21:19 +0000 (23:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2012 09:04:33 +0000 (10:04 +0100)
"interface" was only mentionned for the proxy source address but not
for the server's.

src/cfgparse.c

index 9fa1881921ff15b5e8ce94f21b7d68709d22eb78..f1cb96ef93a1db49907a3210963645701bfd3d0d 100644 (file)
@@ -4514,13 +4514,8 @@ stats_error_parsing:
                                struct sockaddr_storage *sk;
 
                                if (!*args[cur_arg + 1]) {
-#if defined(CONFIG_HAP_CTTPROXY) || defined(CONFIG_HAP_LINUX_TPROXY)
-                                       Alert("parsing [%s:%d] : '%s' expects <addr>[:<port>[-<port>]], and optional '%s' <addr> as argument.\n",
-                                             file, linenum, "source", "usesrc");
-#else
-                                       Alert("parsing [%s:%d] : '%s' expects <addr>[:<port>[-<port>]] as argument.\n",
-                                             file, linenum, "source");
-#endif
+                                       Alert("parsing [%s:%d] : '%s' expects <addr>[:<port>[-<port>]], and optionally '%s' <addr>, and '%s' <name> as argument.\n",
+                                             file, linenum, "source", "usesrc", "interface");
                                        err_code |= ERR_ALERT | ERR_FATAL;
                                        goto out;
                                }