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:
parent
c55a20b074
commit
1c20c64062
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue