Use libsignal Net without proxy on rejection
Co-authored-by: Alex Bakon <akonradi@signal.org>
This commit is contained in:
parent
47dee82376
commit
7fdfe43c5b
1 changed files with 6 additions and 1 deletions
|
@ -1728,7 +1728,12 @@ export function initialize({
|
|||
libsignalNet.setIpv6Enabled(!disableIPv6);
|
||||
if (proxyUrl) {
|
||||
log.info('Setting libsignal proxy');
|
||||
libsignalNet.setProxyFromUrl(proxyUrl);
|
||||
try {
|
||||
libsignalNet.setProxyFromUrl(proxyUrl);
|
||||
} catch (error) {
|
||||
log.error(`Failed to set proxy: ${error}`);
|
||||
libsignalNet.clearProxy();
|
||||
}
|
||||
}
|
||||
|
||||
// Thanks to function-hoisting, we can put this return statement before all of the
|
||||
|
|
Loading…
Add table
Reference in a new issue