mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 19:29:27 +00:00
Add warning when trying to set uPnP as firewall policy and uPnP is not available
This commit is contained in:
parent
ee6366003f
commit
3610297d37
1 changed files with 6 additions and 0 deletions
|
|
@ -4206,6 +4206,12 @@ const char *linphone_core_get_nat_address_resolved(LinphoneCore *lc)
|
|||
}
|
||||
|
||||
void linphone_core_set_firewall_policy(LinphoneCore *lc, LinphoneFirewallPolicy pol){
|
||||
#ifndef BUILD_UPNP
|
||||
if(pol == LinphonePolicyUseUpnp) {
|
||||
ms_warning("UPNP is not available, reset firewall policy to no firewall");
|
||||
pol = LinphonePolicyNoFirewall;
|
||||
}
|
||||
#endif //BUILD_UPNP
|
||||
lc->net_conf.firewall_policy=pol;
|
||||
if (lc->sip_conf.contact) update_primary_contact(lc);
|
||||
if (linphone_core_ready(lc))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue