IPv6 was causing the delay

This commit is contained in:
Miek Gieben 2011-07-06 19:28:03 +02:00
parent 6e7a5dd725
commit 5d231db016
2 changed files with 0 additions and 4 deletions

View File

@ -27,7 +27,6 @@ func match(m *dns.Msg, d int) (*dns.Msg, bool) {
func send(m *dns.Msg, ok bool) (o *dns.Msg) {
for _, c := range qr {
println("Sending to ", c.Addr)
o = c.Client.Exchange(m, c.Addr)
}
return

View File

@ -95,7 +95,6 @@ func doFunkensturm(pkt *dns.Msg) ([]byte, os.Error) {
ok, ok1 := true, true
pkt1 := pkt
for _, m := range f.Matches {
println("*match functions")
pkt1, ok1 = m.Func(pkt1, IN)
switch m.Op {
case AND:
@ -147,7 +146,6 @@ func doFunkensturm(pkt *dns.Msg) ([]byte, os.Error) {
}
func serve(w dns.ResponseWriter, req *dns.Msg) {
println("In serve")
out, err := doFunkensturm(req)
if err != nil {
fmt.Fprintf(os.Stderr, "Error: %s\n", err.String())
@ -176,7 +174,6 @@ func main() {
}
flag.Parse()
if *cpuprofile != "" {
println("* profiling *")
f, err := os.Create(*cpuprofile)
if err != nil {
log.Fatal(err)