From bf5d8a7740c4da422f0ca46a17db632e385ed522 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Fri, 2 May 2014 21:08:58 +0800 Subject: [PATCH] fix fast_open option on server --- src/server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.c b/src/server.c index a5c85021..0ef3e92f 100644 --- a/src/server.c +++ b/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)