Changeset 10623
- Timestamp:
- May 2, 2010, 12:48:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/tr-dht.c
r10616 r10623 249 249 250 250 static int 251 rebind_ipv6( void)251 rebind_ipv6(tr_bool force) 252 252 { 253 253 struct sockaddr_in6 sin6; … … 259 259 /* We currently have no way to enable or disable IPv6 once the DHT has 260 260 been initialised. Oh, well. */ 261 if( dht6_socket < 0 || ipv6 == NULL) {261 if(ipv6 == NULL || (!force && dht6_socket < 0)) { 262 262 if(last_bound) { 263 263 free(last_bound); … … 343 343 344 344 if(tr_globalIPv6()) 345 rebind_ipv6( );345 rebind_ipv6(TRUE); 346 346 347 347 if( getenv( "TR_DHT_VERBOSE" ) != NULL ) … … 709 709 count++; 710 710 if(count >= 20) { 711 rebind_ipv6( );711 rebind_ipv6(FALSE); 712 712 count = 0; 713 713 }
Note: See TracChangeset
for help on using the changeset viewer.