]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] cfgparse: report support of <path> for the 'bind' statements
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Nov 2010 08:50:37 +0000 (09:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Nov 2010 14:59:42 +0000 (15:59 +0100)
"bind" now supports unix sockets, so report that in the error message.

src/cfgparse.c

index 59e238c78232f089218bdc36ec3a6e023a9b4db9..034fe62209e4c097844add9948cc71068a1cafd6 100644 (file)
@@ -1414,7 +1414,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
                        err_code |= ERR_WARN;
 
                if ( *(args[1]) != '/' && strchr(args[1], ':') == NULL) {
-                       Alert("parsing [%s:%d] : '%s' expects [addr1]:port1[-end1]{,[addr]:port[-end]}... as arguments.\n",
+                       Alert("parsing [%s:%d] : '%s' expects {<path>|[addr1]:port1[-end1]}{,[addr]:port[-end]}... as arguments.\n",
                              file, linenum, args[0]);
                        err_code |= ERR_ALERT | ERR_FATAL;
                        goto out;