Use electron's DNS resolver, prioritizing ipv4 connections
This commit is contained in:
parent
615539ed6d
commit
557b86f52e
7 changed files with 169 additions and 240 deletions
10
app/main.ts
10
app/main.ts
|
@ -20,6 +20,7 @@ import {
|
|||
ipcMain as ipc,
|
||||
Menu,
|
||||
nativeTheme,
|
||||
net,
|
||||
powerSaveBlocker,
|
||||
screen,
|
||||
session,
|
||||
|
@ -2618,6 +2619,15 @@ ipc.handle('executeMenuAction', async (_event, action: MenuActionType) => {
|
|||
}
|
||||
});
|
||||
|
||||
ipc.handle(
|
||||
'net.resolveHost',
|
||||
(_event, hostname: string, queryType?: 'A' | 'AAAA') => {
|
||||
return net.resolveHost(hostname, {
|
||||
queryType,
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
let stickerCreatorWindow: BrowserWindow | undefined;
|
||||
async function showStickerCreatorWindow() {
|
||||
if (stickerCreatorWindow) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue