Pass proxy down to libsignal Net instance

This commit is contained in:
Alex Bakon 2025-02-18 15:36:51 -05:00 committed by GitHub
commit aa8cc4d445
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 10 deletions

View file

@ -1726,6 +1726,10 @@ export function initialize({
certificateAuthority
);
libsignalNet.setIpv6Enabled(!disableIPv6);
if (proxyUrl) {
log.info('Setting libsignal proxy');
libsignalNet.setProxyFromUrl(proxyUrl);
}
// Thanks to function-hoisting, we can put this return statement before all of the
// below function definitions.