forked from mirrors/linphone-iphone
Prevent resolving the STUN server several times in parallel.
This commit is contained in:
parent
b3bf09c8e7
commit
681a5834c5
1 changed files with 1 additions and 1 deletions
|
|
@ -555,7 +555,7 @@ void linphone_core_resolve_stun_server(LinphoneCore *lc){
|
|||
* TODO: use IPv6 resolution if linphone_core_ipv6_enabled()==TRUE and use V4Mapped addresses for ICE gathering.
|
||||
*/
|
||||
const char *server=lc->net_conf.stun_server;
|
||||
if (lc->sal && server){
|
||||
if (lc->sal && server && !lc->net_conf.stun_res){
|
||||
char host[NI_MAXHOST];
|
||||
int port=3478;
|
||||
linphone_parse_host_port(server,host,sizeof(host),&port);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue