Changes in lib/proxy.c [aefaac3a:58a1449]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/proxy.c
raefaac3a r58a1449 114 114 { 115 115 struct sockaddr_in *sin; 116 struct sockaddr_in me;117 116 int fd = -1; 118 117 … … 128 127 129 128 sock_make_nonblocking(fd); 130 131 if( global.conf->iface_out )132 {133 me.sin_family = AF_INET;134 me.sin_port = 0;135 me.sin_addr.s_addr = inet_addr( global.conf->iface_out );136 137 if( bind( fd, (struct sockaddr *) &me, sizeof( me ) ) != 0 )138 event_debug( "bind( %d, \"%s\" ) failure\n", fd, global.conf->iface_out );139 }140 129 141 130 event_debug("proxy_connect_none( \"%s\", %d ) = %d\n", host, port, fd);
Note: See TracChangeset
for help on using the changeset viewer.