mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
make sure only one transport is configured
This commit is contained in:
parent
5273d7c70f
commit
c4bf7958ab
1 changed files with 3 additions and 0 deletions
|
|
@ -532,10 +532,13 @@ static void sip_config_read(LinphoneCore *lc)
|
|||
|
||||
if (tr.udp_port>0 && random_port){
|
||||
tr.udp_port=random_port;
|
||||
tr.tls_port=tr.tcp_port=0; /*make sure only one transport is active at a time*/
|
||||
}else if (tr.tcp_port>0 && random_port){
|
||||
tr.tcp_port=random_port;
|
||||
tr.tls_port=tr.udp_port=0; /*make sure only one transport is active at a time*/
|
||||
}else if (tr.tls_port>0 && random_port){
|
||||
tr.tls_port=random_port;
|
||||
tr.udp_port=tr.tcp_port=0; /*make sure only one transport is active at a time*/
|
||||
}
|
||||
|
||||
#ifdef __linux
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue