From: Willy Tarreau Date: Sat, 8 Dec 2012 22:21:19 +0000 (+0100) Subject: MINOR: cfgparse: mention "interface" in the list of allowed "source" options X-Git-Tag: v1.5-dev15~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb37faa467532d46d42d3cd0f3e08ce6e02b03b0;p=thirdparty%2Fhaproxy.git MINOR: cfgparse: mention "interface" in the list of allowed "source" options "interface" was only mentionned for the proxy source address but not for the server's. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 9fa1881921..f1cb96ef93 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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 [:[-]], and optional '%s' as argument.\n", - file, linenum, "source", "usesrc"); -#else - Alert("parsing [%s:%d] : '%s' expects [:[-]] as argument.\n", - file, linenum, "source"); -#endif + Alert("parsing [%s:%d] : '%s' expects [:[-]], and optionally '%s' , and '%s' as argument.\n", + file, linenum, "source", "usesrc", "interface"); err_code |= ERR_ALERT | ERR_FATAL; goto out; }