mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-09 10:47:22 +01:00
Fixing bugs in Stun dm parameters : UDPConnectionRequestAddress, NATDetected
This commit is contained in:
parent
63c90a7d1b
commit
fe324dbae2
1 changed files with 2 additions and 2 deletions
|
|
@ -459,7 +459,7 @@ int set_instance_mode(char *refparam, struct dmctx *ctx, void *data, char *insta
|
|||
*/
|
||||
|
||||
int get_upd_cr_address(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value){
|
||||
dmuci_get_option_value_string("cwmp_stun", "stun", "crudp_address", value);
|
||||
dmuci_get_varstate_string("cwmp_stun", "stun", "crudp_address", value);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -593,7 +593,7 @@ int get_nat_detected(char *refparam, struct dmctx *ctx, void *data, char *instan
|
|||
char *v;
|
||||
|
||||
if (check_file(path)) { //stun is enabled
|
||||
dmuci_get_option_value_string("cwmp_stun", "stun", "nat_detected", &v);
|
||||
dmuci_get_varstate_string("cwmp_stun", "stun", "nat_detected", &v);
|
||||
*value = (*v == '1') ? "true" : "false";
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue