Port double dots is now hard written in the code

This commit is contained in:
Mael G. 2020-12-22 21:26:39 -04:00
parent 23bbef688b
commit 607dc95b5a
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
AppMode = "production" #Anything != production will show DEBUG messages AppMode = "production" #Anything != production will show DEBUG messages
[App] [App]
IP = ":" IP = ""
Port = 5353 Port = 5353
Logfile = true Logfile = true
Logdir = "/var/log/" Logdir = "/var/log/"

View file

@ -46,7 +46,7 @@ func main() {
} }
//Start the DNS server //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 logrus.WithFields(logrus.Fields{"ip": conf.App.IP, "port": conf.App.Port}).Infof("SERVER : Started") //log
err = server.ListenAndServe() //start it err = server.ListenAndServe() //start it
utils.CheckErr(err) utils.CheckErr(err)