Browse Source

Merge pull request #70 from clowwindy/master

Fix fast_open option
pull/71/head
Max Lv 10 years ago
parent
commit
affac72f86
2 changed files with 4 additions and 1 deletions
  1. 2
      src/jconf.c
  2. 3
      src/server.c

2
src/jconf.c

@ -160,7 +160,7 @@ jconf_t *read_jconf(const char* file)
}
else if (strcmp(name, "fast_open") == 0)
{
conf.fast_open = 1;
conf.fast_open = value->u.boolean;
}
}
}

3
src/server.c

@ -1012,6 +1012,9 @@ int main (int argc, char **argv)
if (password == NULL) password = conf->password;
if (method == NULL) method = conf->method;
if (timeout == NULL) timeout = conf->timeout;
#ifdef TCP_FASTOPEN
if (fast_open == 0) fast_open = conf->fast_open;
#endif
}
if (server_num == 0 || server_port == NULL || password == NULL)

Loading…
Cancel
Save