let reflect print incoming packets

This commit is contained in:
Miek Gieben 2011-01-27 22:09:24 +01:00
parent 1e8c2d3679
commit 01fd71c2d1
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import (
"os"
"net"
"dns"
"fmt"
"strconv"
"dns/responder"
"runtime"
@ -73,6 +74,7 @@ func (s *server) ResponderUDP(c *net.UDPConn, a net.Addr, in []byte) {
if m == nil {
return
}
fmt.Fprintf(os.Stderr, "%v\n", m)
out, ok := m.Pack()
if !ok {
println("Failed to pack")
@ -86,6 +88,7 @@ func (s *server) ResponderTCP(c *net.TCPConn, in []byte) {
if m == nil {
return
}
fmt.Fprintf(os.Stderr, "%v\n", m)
out, ok := m.Pack()
if !ok {
println("Failed to pack")