Skip to content

Commit ec784a6

Browse files
committed
网站同步hosts优化
1 parent ef909d0 commit ec784a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/utils/Hosts.js

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default class Hosts {
3333
* @param domain {string}
3434
*/
3535
static async delete(domain) {
36+
if (domain === 'localhost') return
3637
let path = GetPath.getHostsPath();
3738
if (!await FileUtil.Exists(path)) {
3839
return;

0 commit comments

Comments
 (0)