Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
3610297d
Commit
3610297d
authored
Feb 13, 2013
by
Yann Diorcet
Browse files
Add warning when trying to set uPnP as firewall policy and uPnP is not available
parent
ee636600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
coreapi/linphonecore.c
coreapi/linphonecore.c
+6
-0
No files found.
coreapi/linphonecore.c
View file @
3610297d
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment