mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 00:13:42 +00:00
fix a timeout issue
This commit is contained in:
-17
@@ -35,23 +35,6 @@ static char *to_string(const json_value *value)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int to_int(const json_value *value)
|
||||
{
|
||||
if (value->type == json_string)
|
||||
{
|
||||
return atoi(value->u.string.ptr);
|
||||
}
|
||||
else if (value->type == json_integer)
|
||||
{
|
||||
return value->u.integer;
|
||||
}
|
||||
else
|
||||
{
|
||||
FATAL("Invalid config format.");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void parse_addr(const char *str, remote_addr_t *addr) {
|
||||
int ret = -1;
|
||||
char *pch;
|
||||
|
||||
Reference in New Issue
Block a user