Browse Source

Refine the output

pull/628/head
Max Lv 9 years ago
parent
commit
a73fe213a6
1 changed files with 8 additions and 3 deletions
  1. 11
      src/server.c

11
src/server.c

@ -416,9 +416,14 @@ static remote_t *connect_to_remote(struct addrinfo *res,
remote_t *remote = new_remote(sockfd);
// setup remote socks
setnonblocking(sockfd);
if (bind_to_address(sockfd, bind_address) == -1)
ERROR("bind_to_address");
if (setnonblocking(sockfd) == -1)
ERROR("setnonblocking");
if (bind_address != NULL)
if (bind_to_address(sockfd, bind_address) == -1)
ERROR("bind_to_address");
#ifdef SET_INTERFACE
if (iface) {
if (setinterface(sockfd, iface) == -1)

Loading…
Cancel
Save