Fix - failure to parse custom variables and custom images from config lists

Signed-off-by: Rob White <rob@blue-wave.net>
This commit is contained in:
Rob White
2024-05-26 20:18:01 +01:00
parent b489c983a2
commit 32a33cb291
2 changed files with 4 additions and 0 deletions

View File

@@ -302,6 +302,8 @@ config_init(int argc, char **argv)
// Lists
parse_trusted_mac_list(set_list_str("trustedmac", DEFAULT_TRUSTEDMACLIST, debug_level));
parse_fas_custom_parameters_list(set_list_str("fas_custom_parameters_list", DEFAULT_FAS_CUSTOM_PARAMETERS_LIST, debug_level));
parse_fas_custom_variables_list(set_list_str("fas_custom_variables_list", DEFAULT_FAS_CUSTOM_VARIABLES_LIST, debug_level));
parse_fas_custom_images_list(set_list_str("fas_custom_images_list", DEFAULT_FAS_CUSTOM_IMAGES_LIST, debug_level));
// Before we do anything else, reset the firewall (cleans it, in case we are restarting or after an opennds crash)
iptables_fw_destroy();

View File

@@ -120,6 +120,8 @@
// Default lists
#define DEFAULT_TRUSTEDMACLIST ""
#define DEFAULT_FAS_CUSTOM_PARAMETERS_LIST ""
#define DEFAULT_FAS_CUSTOM_VARIABLES_LIST ""
#define DEFAULT_FAS_CUSTOM_IMAGES_LIST ""
#define DEFAULT_USERS_TO_ROUTER "allow%20udp%20port%2053 allow%20udp%20port%2067 allow%20tcp%20port%2022 allow%20tcp%20port%20443"
#define DEFAULT_AUTHENTICATED_USERS "allow%20all"
#define DEFAULT_PREAUTHENTICATED_USERS ""