mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-24 22:35:39 +02:00
Revert "ssh: optional bind interface if bind address specified."
This reverts commit 5a878a71a3528c2626aa1d331934fd964782d41c. Apologies - I accidentally pushed this.
This commit is contained in:
parent
493339a940
commit
6248b86074
@ -390,12 +390,6 @@ ssh_create_socket(struct addrinfo *ai)
|
||||
}
|
||||
memcpy(&bindaddr, res->ai_addr, res->ai_addrlen);
|
||||
bindaddrlen = res->ai_addrlen;
|
||||
|
||||
/*'-B' option*/
|
||||
if (options.bind_interface != NULL) {
|
||||
if (setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, options.bind_interface, strlen(options.bind_interface) + 1))
|
||||
debug("error: setsockopt SO_BINDTODEVICE");
|
||||
}
|
||||
} else if (options.bind_interface != NULL) {
|
||||
#ifdef HAVE_IFADDRS_H
|
||||
if ((r = getifaddrs(&ifaddrs)) != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user