mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 00:28:44 +05:00
Small test for DNS parsing
This commit is contained in:
@@ -72,4 +72,10 @@ func (da *DNSAgent) ListenAndServe() error {
|
||||
// requests are reaching here asynchronously
|
||||
func (da *DNSAgent) handleMessage(w dns.ResponseWriter, m *dns.Msg) {
|
||||
fmt.Printf("got message: %+v\n", m)
|
||||
rply := new(dns.Msg)
|
||||
rply.SetReply(m)
|
||||
rply.Authoritative = true
|
||||
|
||||
fmt.Printf("send reply message: %+v\n", rply)
|
||||
w.WriteMsg(rply)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user