Also clear the STUN server username when cleaning a NAT policy.

This commit is contained in:
Ghislain MARY 2016-06-21 17:14:48 +02:00
parent ef52735633
commit d25ee01e99

View file

@ -127,6 +127,7 @@ void linphone_nat_policy_clear(LinphoneNatPolicy *policy) {
linphone_nat_policy_enable_ice(policy, FALSE);
linphone_nat_policy_enable_upnp(policy, FALSE);
linphone_nat_policy_set_stun_server(policy, NULL);
linphone_nat_policy_set_stun_server_username(policy, NULL);
}
bool_t linphone_nat_policy_stun_enabled(const LinphoneNatPolicy *policy) {