tidy up DNSServer fields
- make Zone, Iface and Upstream public - this is safe and makes sense since all are immutable, and the former two are passed to the constructor and are thus known anyway, and the latter is derived from external information - remove IfaceName - we can just use Iface instead - log Upstream on startup
This commit is contained in:
1 parent
de557a3e03
commit
10f37db9da
2 files changed
+20
-25
No files matched your search
@@ -87,6 +87,7 @@ func main() {
|
||||
if err != nil {
|
||||
Error.Fatal("Failed to initialize the WeaveDNS server", err)
|
||||
}
|
||||
Info.Println("Upstream", srv.Upstream)
|
||||
|
||||
Debug.Printf("Starting the signals handler")
|
||||
go handleSignals(srv)
|
||||
|
||||
Reference in new issue
Block a user