forked from mirrors/linphone-iphone
fix behavior if no proxy configured
This commit is contained in:
parent
63a1785718
commit
65d11ff32b
2 changed files with 5 additions and 4 deletions
|
|
@ -312,7 +312,7 @@ extern void libmsilbc_init();
|
|||
|
||||
LinphoneAddress* addr=linphone_address_new(linphone_proxy_config_get_addr(proxyCfg));
|
||||
proxyReachability=SCNetworkReachabilityCreateWithName(nil, linphone_address_get_domain(addr));
|
||||
proxyReachabilityContext.info=self;
|
||||
|
||||
|
||||
[self doRegister];
|
||||
} else if (configCheckDisable == false) {
|
||||
|
|
@ -322,10 +322,11 @@ extern void libmsilbc_init();
|
|||
cancelButtonTitle:@"Continue"
|
||||
otherButtonTitles:@"Never remind",nil];
|
||||
[error show];
|
||||
proxyReachability=SCNetworkReachabilityCreateWithName(nil, @"linphone.org");
|
||||
proxyReachability=SCNetworkReachabilityCreateWithName(nil, "linphone.org");
|
||||
|
||||
}
|
||||
|
||||
proxyReachabilityContext.info=self;
|
||||
SCNetworkReachabilitySetCallback(proxyReachability, (SCNetworkReachabilityCallBack)networkReachabilityCallBack,&proxyReachabilityContext);
|
||||
SCNetworkReachabilityScheduleWithRunLoop(proxyReachability, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@
|
|||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<string>1.0.1</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>3.1.2</string>
|
||||
<string>3.1.3</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>PhoneMainView</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue