mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 02:33:41 +00:00
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user