This commit is contained in:
Max Lv
2016-05-06 13:23:18 +08:00
parent 7ddcccdd56
commit 41d93b126a
4 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -431,7 +431,8 @@ static remote_t *connect_to_remote(struct addrinfo *res,
setnonblocking(sockfd);
#ifdef SET_INTERFACE
if (iface) {
setinterface(sockfd, iface);
if (setinterface(sockfd, iface) == -1)
ERROR("setinterface");
}
#endif