Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

Commit f4677ec

Browse files
committed
fix go vet fails for go1.4
1 parent c3c97da commit f4677ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ func main() {
2525
configPath := flag.String("c", ConfigPath, "path to the config file")
2626
flag.Parse()
2727

28-
cp := config.ConfigParser{*configPath, true}
28+
cp := config.ConfigParser{
29+
Path: *configPath,
30+
AllowDNS: true,
31+
}
32+
2933
conf, err := cp.Parse()
3034
if err != nil {
3135
log.Println("Error parsing config file:", err.Error())

0 commit comments

Comments
 (0)