forked from mirrors/linphone-iphone
Fix bug in migration from firewall_policy to nat_policy.
Even after creating the nat_policy, the settings of the firewall_policy could still be used resulting in unexpected behavior.
This commit is contained in:
parent
b5606700c5
commit
abab667da5
1 changed files with 3 additions and 0 deletions
|
|
@ -5241,6 +5241,9 @@ void linphone_core_set_firewall_policy(LinphoneCore *lc, LinphoneFirewallPolicy
|
|||
}
|
||||
linphone_core_set_nat_policy(lc, nat_policy);
|
||||
linphone_nat_policy_unref(nat_policy);
|
||||
|
||||
/* Ensure that the firewall policy is cleared in the config because it has been replaced by the nat_policy. */
|
||||
lp_config_set_string(lc->config, "net", "firewall_policy", NULL);
|
||||
}
|
||||
|
||||
LinphoneFirewallPolicy linphone_core_get_firewall_policy(const LinphoneCore *lc) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue