|
@ -274,6 +274,14 @@ read_jconf(const char *file) |
|
|
check_json_value_type(value, json_boolean, |
|
|
check_json_value_type(value, json_boolean, |
|
|
"invalid config file: option 'reuse_port' must be a boolean"); |
|
|
"invalid config file: option 'reuse_port' must be a boolean"); |
|
|
conf.reuse_port = value->u.boolean; |
|
|
conf.reuse_port = value->u.boolean; |
|
|
|
|
|
} else if (strcmp(name, "tcp_incoming_sndbuf") == 0) { |
|
|
|
|
|
check_json_value_type(value, json_integer, |
|
|
|
|
|
"invalid config file: option 'tcp_incoming_sndbuf' must be an integer"); |
|
|
|
|
|
conf.tcp_incoming_sndbuf = value->u.integer; |
|
|
|
|
|
} else if (strcmp(name, "tcp_outgoing_sndbuf") == 0) { |
|
|
|
|
|
check_json_value_type(value, json_integer, |
|
|
|
|
|
"invalid config file: option 'tcp_outgoing_sndbuf' must be an integer"); |
|
|
|
|
|
conf.tcp_outgoing_sndbuf = value->u.integer; |
|
|
} else if (strcmp(name, "auth") == 0) { |
|
|
} else if (strcmp(name, "auth") == 0) { |
|
|
FATAL("One time auth has been deprecated. Try AEAD ciphers instead."); |
|
|
FATAL("One time auth has been deprecated. Try AEAD ciphers instead."); |
|
|
} else if (strcmp(name, "nofile") == 0) { |
|
|
} else if (strcmp(name, "nofile") == 0) { |
|
|