Port double dots is now hard written in the code
This commit is contained in:
parent
23bbef688b
commit
607dc95b5a
2 changed files with 2 additions and 2 deletions
|
@ -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/"
|
||||||
|
|
2
main.go
2
main.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue