zettio/weave#362 - reorganize the DNS server code, so it looks like the mDNS server, with a proper class with Start() and so...

Listen on TCP on port 53 by default
This commit is contained in:
Alvaro Saurin committed 2015-02-23 13:17:54 +01:00
1 parent e485e68946
commit 3be5600383
3 files changed
+100 -61

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package nameserver
import (
. "github.com/zettio/weave/common"
)
func checkFatal(e error) {
if e != nil {
Error.Fatal(e)
}
}
func checkWarn(e error) {
if e != nil {
Warning.Println(e)
}
}