diff --git a/src/main/utils/Hosts.js b/src/main/utils/Hosts.js index c3e3ba4a..587567b1 100644 --- a/src/main/utils/Hosts.js +++ b/src/main/utils/Hosts.js @@ -33,6 +33,7 @@ export default class Hosts { * @param domain {string} */ static async delete(domain) { + if (domain === 'localhost') return let path = GetPath.getHostsPath(); if (!await FileUtil.Exists(path)) { return;