Skip to content

Commit

Permalink
enable stats only on 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vvaltman committed Jan 25, 2019
1 parent 28f5b17 commit 2c94211
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engine/engine-net.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ int get_port_mod (void) /* {{{ */ {

int try_open_port (int port, int quit_on_fail) /* {{{ */ {
engine_t *E = engine_state;
int enable_ipv6 = engine_check_ipv6_enabled () ? SM_IPV6 : 0;
if (engine_check_tcp_enabled ()) {
struct in_addr l;
l.s_addr = htonl(0x7f000001);
E->sfd = server_socket (port, l, engine_get_backlog (), enable_ipv6);
E->sfd = server_socket (port, l, engine_get_backlog (), 0);
vkprintf (1, "opened tcp socket\n");
if (E->sfd < 0) {
if (quit_on_fail) {
Expand Down

0 comments on commit 2c94211

Please sign in to comment.