mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 00:59:20 +00:00
Add check to prevent crash.
This commit is contained in:
parent
3016ec37d0
commit
46ce83799e
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ void TunnelManager::addServer(const char *ip, int port,unsigned int udpMirrorPor
|
|||
}
|
||||
|
||||
void TunnelManager::addServer(const char *ip, int port) {
|
||||
if (ip == NULL) {
|
||||
ip = "";
|
||||
ms_warning("Adding tunnel server with empty ip, it will not work!");
|
||||
}
|
||||
mServerAddrs.push_back(ServerAddr(ip,port));
|
||||
if (mTunnelClient) mTunnelClient->addServer(ip,port);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue