1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Electron: Restart mdns service after network change

This commit is contained in:
Michael Hollister 2025-06-13 09:42:10 -05:00
parent 78143ed172
commit c1e72173e0

View file

@ -387,6 +387,8 @@ export class Main {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
ipcMain.on('network-changed', (event: IpcMainEvent, value: any) => {
Main.cache.interfaces = value;
Main.discoveryService.stop();
Main.discoveryService.start();
Main.mainWindow?.webContents?.send("device-info", { name: os.hostname(), interfaces: value });
});