Browse Source

Similar fix as #967

pull/976/head
Rayson zhu 8 years ago
committed by Max Lv
parent
commit
1c738323a7
1 changed files with 4 additions and 1 deletions
  1. 5
      src/server.c

5
src/server.c

@ -533,8 +533,11 @@ connect_to_remote(EV_P_ struct addrinfo *res,
#ifdef SET_INTERFACE
if (iface) {
if (setinterface(sockfd, iface) == -1)
if (setinterface(sockfd, iface) == -1) {
ERROR("setinterface");
close(sockfd);
return NULL;
}
}
#endif

Loading…
Cancel
Save