Skip to content

Commit

Permalink
* NEW [conf] enable disable tcp
Browse files Browse the repository at this point in the history
Signed-off-by: wayne <yukang.wei@emqx.io>
  • Loading branch information
StargazerWayne authored and JaylinYu committed Dec 21, 2023
1 parent 00bd681 commit e025b8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/supplemental/nanolib/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ conf_basic_parse(conf *config, const char *path)
if ((value = get_conf_value(line, sz, "url")) != NULL) {
FREE_NONULL(config->url);
config->url = value;
} else if ((value = get_conf_value(line, sz, "enable")) !=
NULL) {
config->enable = nni_strcasecmp(value, "yes") == 0 ||
nni_strcasecmp(value, "true") == 0;
nng_strfree(value);
} else if ((value = get_conf_value(line, sz, "daemon")) !=
NULL) {
config->daemon = nni_strcasecmp(value, "yes") == 0 ||
Expand Down

0 comments on commit e025b8e

Please sign in to comment.