disable compression again

This commit is contained in:
Miek Gieben 2011-01-25 12:32:18 +01:00
parent 9d6d5ff3f7
commit 756be15ce5

View File

@ -4,8 +4,8 @@ import (
"net" "net"
"dns" "dns"
"dns/resolver" "dns/resolver"
"bytes" // "bytes"
"compress/gzip" // "compress/gzip"
"os" "os"
"flag" "flag"
"fmt" "fmt"
@ -107,6 +107,7 @@ FLAGS:
} }
fmt.Printf("%v\n", in.Dns) fmt.Printf("%v\n", in.Dns)
fmt.Printf("%s\n", in.Meta) fmt.Printf("%s\n", in.Meta)
/*
// zip the message // zip the message
msgbuf, _ := in.Dns.Pack() msgbuf, _ := in.Dns.Pack()
var zbuff bytes.Buffer var zbuff bytes.Buffer
@ -114,6 +115,7 @@ FLAGS:
w.Write(msgbuf) w.Write(msgbuf)
w.Close() w.Close()
fmt.Printf(";; Compressed: %d\n", zbuff.Len()) fmt.Printf(";; Compressed: %d\n", zbuff.Len())
*/
} else { } else {
fmt.Printf("%v\n", in.Error.String()) fmt.Printf("%v\n", in.Error.String())
} }