mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
MINOR: inet: report the faulty interface name in "bind" errors
When a "bind ... interface foo" statement fails, let's report the interface name in the error message to help locating it in the file.
This commit is contained in:
parent
3cf05cb0b1
commit
f78b52eb7d
1 changed files with 1 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ int sock_inet_bind_receiver(struct receiver *rx, char **errmsg)
|
|||
if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE,
|
||||
rx->settings->interface,
|
||||
strlen(rx->settings->interface) + 1) == -1) {
|
||||
memprintf(errmsg, "cannot bind receiver to device (%s)", strerror(errno));
|
||||
memprintf(errmsg, "cannot bind receiver to device '%s' (%s)", rx->settings->interface, strerror(errno));
|
||||
err |= ERR_WARN;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue