Changes of Revision 28
[-] [+] | Changed | sophie-net_addr.patch |
@@ -69,7 +69,7 @@ bzero((char *) &tcp_sock_data, sizeof(tcp_sock_data)); tcp_sock_data.sin_family = AF_INET; - tcp_sock_data.sin_addr.s_addr = htonl(INADDR_ANY); /* FIXME: configurable? */ -+ tcp_sock_data.sin_addr.s_addr = htonl(inet_addr(config.net_addr)); ++ tcp_sock_data.sin_addr.s_addr = inet_addr(config.net_addr); tcp_sock_data.sin_port = htons(config.net_port); setsockopt(tcp_sock, SOL_SOCKET, SO_REUSEADDR, &reuse_addr, sizeof(reuse_addr)); |