summaryrefslogtreecommitdiffstats
path: root/sshconnect.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2021-02-26 06:45:50 +0100
committerDamien Miller <djm@mindrot.org>2021-02-26 06:45:50 +0100
commit6248b86074804983e8f7a2058856a516dbfe2924 (patch)
treec58c4d619a783839aa2fe52c7c0abb070fae3dc7 /sshconnect.c
parentdetech BSD libc hash functions in libbsd / libmd (diff)
downloadopenssh-6248b86074804983e8f7a2058856a516dbfe2924.tar.xz
openssh-6248b86074804983e8f7a2058856a516dbfe2924.zip
Revert "ssh: optional bind interface if bind address specified."
This reverts commit 5a878a71a3528c2626aa1d331934fd964782d41c. Apologies - I accidentally pushed this.
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 8666bd6ed..74f9e7670 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -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) {