From 607dc95b5a0febec05a3f2a0d825c22dde0120c9 Mon Sep 17 00:00:00 2001 From: Mael GRAMAIN Date: Tue, 22 Dec 2020 21:26:39 -0400 Subject: [PATCH] Port double dots is now hard written in the code --- extra/config.ini.example | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/config.ini.example b/extra/config.ini.example index f68e116..4054330 100644 --- a/extra/config.ini.example +++ b/extra/config.ini.example @@ -1,7 +1,7 @@ AppMode = "production" #Anything != production will show DEBUG messages [App] -IP = ":" +IP = "" Port = 5353 Logfile = true Logdir = "/var/log/" diff --git a/main.go b/main.go index b06034e..257e02a 100644 --- a/main.go +++ b/main.go @@ -46,7 +46,7 @@ func main() { } //Start the DNS server - server := &dns.Server{Addr: conf.App.IP + strconv.Itoa(conf.App.Port), Net: "udp"} //define the server + server := &dns.Server{Addr: conf.App.IP + ":" + strconv.Itoa(conf.App.Port), Net: "udp"} //define the server logrus.WithFields(logrus.Fields{"ip": conf.App.IP, "port": conf.App.Port}).Infof("SERVER : Started") //log err = server.ListenAndServe() //start it utils.CheckErr(err)