1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 10:07:40 +00:00

send NULL as the address to evhttp_bind_socket()

This commit is contained in:
Charles Kerr 2008-09-30 16:18:44 +00:00
parent c55a20b074
commit 1c20c64062

View file

@ -407,7 +407,7 @@ startServer( tr_rpc_server * server )
int i; int i;
server->httpd = evhttp_new( tr_eventGetBase( server->session ) ); server->httpd = evhttp_new( tr_eventGetBase( server->session ) );
fprintf( stderr, "%s:%d in startServer; new context is %p\n", __FILE__, __LINE__, server->httpd ); fprintf( stderr, "%s:%d in startServer; new context is %p\n", __FILE__, __LINE__, server->httpd );
i = evhttp_bind_socket( server->httpd, "0.0.0.0", server->port ); i = evhttp_bind_socket( server->httpd, NULL, server->port );
fprintf( stderr, "evhttp_bind_socket returned %d\n", i ); fprintf( stderr, "evhttp_bind_socket returned %d\n", i );
evhttp_set_gencb( server->httpd, handle_request, server ); evhttp_set_gencb( server->httpd, handle_request, server );
} }