mirror of
https://git.hackfreedom.org/mesh.cat/meshname.git
synced 2026-05-22 06:22:32 +00:00
Handle binding failures
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user