optimize: refine logic

This commit is contained in:
mzz2017 authored and mzz2017 committed 2021-05-14 12:24:02 +08:00
1 parent 99f2cdcd96
commit 1633aa21d3
1 file changed
+1 -3
+1 -3
View File
@@ -78,9 +78,7 @@ func ShouldDnsPoisonOpen() int {
fakednsValid = false
}
if fakednsValid && !dnsPortValid() {
if setting.EnhancedMode {
log.Println("[fakedns] unable to use fakedns: port 53 is occupied")
}
log.Println("[fakedns] unable to use fakedns: port 53 is occupied")
fakednsValid = false
}
if !fakednsValid {