add user config option

This commit is contained in:
Rayson zhu
2016-11-25 02:10:17 -06:00
committed by Max Lv
parent aca5f5ddb4
commit a8fdd77fbf
8 changed files with 19 additions and 0 deletions
+2
View File
@@ -197,6 +197,8 @@ read_jconf(const char *file)
conf.method = to_string(value);
} else if (strcmp(name, "timeout") == 0) {
conf.timeout = to_string(value);
} else if (strcmp(name, "user") == 0) {
conf.user = to_string(value);
} else if (strcmp(name, "fast_open") == 0) {
check_json_value_type(value, json_boolean,
"invalid config file: option 'fast_open' must be a boolean");