Use default port in cr url

This commit is contained in:
Suvendhu Hansa 2025-08-06 18:07:41 +05:30
parent 899f0c4a23
commit a5a7d16e0e

View file

@ -524,6 +524,9 @@ static void get_management_ip_port(char **listen_addr)
dmuci_get_option_value_string("cwmp", "cpe", "port", &port);
dmuci_get_option_value_string_varstate("icwmp", "acs", "ip_version", &ip_version);
if (DM_STRLEN(port) == 0)
port = dmstrdup("7547");
if (DM_STRLEN(l3_device) == 0 && DM_STRLEN(interface) != 0)
l3_device = get_l3_device(interface);