mirror of
https://github.com/liudf0716/apfree_wifidog.git
synced 2025-01-08 11:57:37 +08:00
Update centralserver.c
This commit is contained in:
parent
1fcb249a16
commit
6672678106
@ -554,6 +554,15 @@ process_auth_server_counter_v2(struct evhttp_request *req, void *ctx)
|
||||
authresponse.authcode = auth_code;
|
||||
client_counter_request_reply_v2(&authresponse, req, ctx);
|
||||
}
|
||||
|
||||
json_object *j_client_timeout = json_object_object_get(j_result, "clientTimeout");
|
||||
if (j_client_timeout) {
|
||||
int clientTimeout = json_object_get_int(j_client_timeout);
|
||||
s_config *config = config_get_config();
|
||||
LOCK_CLIENT_LIST();
|
||||
config->clienttimeout = clientTimeout;
|
||||
UNLOCK_CLIENT_LIST();
|
||||
}
|
||||
|
||||
ERR:
|
||||
if (j_result) json_object_put(j_result);
|
||||
|
Loading…
Reference in New Issue
Block a user