Handle binding failures
This commit is contained in:
parent
042cefcc84
commit
16daa1032a
@ -65,7 +65,11 @@ func (s *MeshnameServer) Start() error {
|
||||
dns.HandleFunc(tld, s.handleRequest)
|
||||
s.log.Debugln("Handling:", tld, subnet)
|
||||
}
|
||||
go s.dnsServer.ListenAndServe()
|
||||
go func(){
|
||||
if err := s.dnsServer.ListenAndServe(); err != nil {
|
||||
s.log.Fatalln("MeshnameServer failed to start:", err)
|
||||
}
|
||||
}()
|
||||
<-waitStarted
|
||||
|
||||
s.log.Debugln("MeshnameServer started")
|
||||
|
Loading…
Reference in New Issue
Block a user