Browse Source

Refine #1739

pull/1742/head
Max Lv 7 years ago
parent
commit
f19a96e1fa
1 changed files with 3 additions and 0 deletions
  1. 3
      src/jconf.c

3
src/jconf.c

@ -295,6 +295,8 @@ read_jconf(const char *file)
} else if (strcmp(name, "mode") == 0) {
char *mode_str = to_string(value);
if (mode_str == NULL)
conf.mode = TCP_ONLY;
if (strcmp(mode_str, "tcp_only") == 0)
conf.mode = TCP_ONLY;
else if (strcmp(mode_str, "tcp_and_udp") == 0)
@ -304,6 +306,7 @@ read_jconf(const char *file)
else
LOGI("ignore unknown mode: %s, use tcp_only as fallback",
mode_str);
ss_free(mode_str);
} else if (strcmp(name, "mtu") == 0) {
check_json_value_type(value, json_integer,

Loading…
Cancel
Save