Resolve fallback dns addrs during build

This commit is contained in:
Fedor Indutny
2024-02-27 16:53:58 -08:00
committed by GitHub
parent f5787ba1bc
commit e3dbcc1e0f
10 changed files with 151 additions and 34 deletions

View File

@@ -12,6 +12,7 @@ import { textsecure } from '../../textsecure';
import * as Attachments from '../attachments';
import { setup } from '../../signal';
import { addSensitivePath } from '../../util/privacy';
import * as dns from '../../util/dns';
import * as log from '../../logging/log';
import { SignalContext } from '../context';
@@ -72,6 +73,8 @@ if (config.crashDumpsPath) {
addSensitivePath(config.crashDumpsPath);
}
dns.setFallback(SignalContext.config.dnsFallback);
window.Signal = setup({
Attachments,
getRegionCode: () => window.storage.get('regionCode'),