Make sure to initialize the SOA record for the tcp server, too. (#149)

This commit is contained in:
Ward Vandewege 2019-02-06 05:09:01 -05:00 committed by Joona Hoikkala
parent 09dc25d336
commit 5651772837

View File

@ -73,6 +73,7 @@ func main() {
dnsServerTCP := NewDNSServer(DB, Config.General.Listen, tcpProto)
// No need to parse records from config again
dnsServerTCP.Domains = dnsServerUDP.Domains
dnsServerTCP.SOA = dnsServerUDP.SOA
go dnsServerUDP.Start(errChan)
go dnsServerTCP.Start(errChan)
} else {