Chore: code style

This commit is contained in:
Dreamacro
2020-09-20 15:53:27 +08:00
parent 558ac6b965
commit 68dd0622b8
2 changed files with 3 additions and 3 deletions

View File

@ -403,7 +403,7 @@ func parseHosts(cfg *RawConfig) (*trie.DomainTrie, error) {
// add default hosts
if err := tree.Insert("localhost", net.IP{127, 0, 0, 1}); err != nil {
println(err.Error())
log.Errorln("insert localhost to host error: %s", err.Error())
}
if len(cfg.Hosts) != 0 {