diff options
| author | yangwei <[email protected]> | 2023-09-05 10:19:16 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-09-05 10:19:16 +0800 |
| commit | cd2dd5c247029d6b2f40abc688899652f73879a6 (patch) | |
| tree | b4da3a2bca44f795c0c06cff0f9d6d709539345c /src/config/config_parse.cpp | |
| parent | bc121562fba6bcad9a20f3de8bd5d22bfcdb21d8 (diff) | |
✨ feat(sapp_watch_dog enabled): packet_io.feature增加是否开启watchdog开关
默认为1,gdb时可以设置为0,方便调试
Diffstat (limited to 'src/config/config_parse.cpp')
| -rw-r--r-- | src/config/config_parse.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/config_parse.cpp b/src/config/config_parse.cpp index adc3111..02ac334 100644 --- a/src/config/config_parse.cpp +++ b/src/config/config_parse.cpp @@ -1717,6 +1717,7 @@ int sapp_parse_config(void) MESA_load_profile_int_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"packet_io.feature", (char *)"dumpfile_sleep_time_before_exit", &pconfig->packet_io.dumpfile_sleep_time_before_exit, 0); + MESA_load_profile_int_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"packet_io.feature", (char *)"watchdog_enabled", &pconfig->packet_io.watchdog_enabled, 1); tomlc99_wrap_load_string_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"packet_io.deployment", (char *)"mode", pconfig->packet_io.deployment_mode_str, NAME_MAX, "inline"); tomlc99_wrap_load_string_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"packet_io.internal.interface", (char *)"type", pconfig->packet_io.internal.interface.type_str, NAME_MAX, "pcap"); |
