Browse Source

- sendipv[46] was not set in no fork mode (found by Jan)

Andrei Pelinescu-Onciul 22 years ago
parent
commit
45a03e3cf7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main.c

+ 2 - 0
main.c

@@ -614,6 +614,8 @@ int main_loop()
 		/* only one address, we ignore all the others */
 		/* only one address, we ignore all the others */
 		if (udp_init(&sock_info[0])==-1) goto error;
 		if (udp_init(&sock_info[0])==-1) goto error;
 		bind_address=&sock_info[0];
 		bind_address=&sock_info[0];
+		sendipv4=bind_address;
+		sendipv6=bind_address; /*FIXME*/
 		bind_idx=0;
 		bind_idx=0;
 		if (sock_no>1){
 		if (sock_no>1){
 			LOG(L_WARN, "WARNING: using only the first listen address"
 			LOG(L_WARN, "WARNING: using only the first listen address"