Skip to content

Commit 3721e38

Browse files
authored
Update config_json.c
1 parent f0ca4b3 commit 3721e38

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/config_json.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,10 @@ struct server_config* parse_config_file(bool is_server, const char* file)
142142
continue;
143143
}
144144

145-
{
146-
char udp[10] = UDP_STR;
147-
if (json_iter_extract_bool(strlwr(udp), &iter, &obj_bool)) {
145+
if (json_iter_extract_bool("udp", &iter, &obj_bool)) {
148146
config->udp = obj_bool;
149147
continue;
150148
}
151-
}
152149
if (json_iter_extract_int("idle_timeout", &iter, &obj_int)) {
153150
config->idle_timeout = obj_int * MILLISECONDS_PER_SECOND;
154151
continue;

0 commit comments

Comments
 (0)