clean up example server debug output

This commit is contained in:
Lucas Clemente 2016-04-12 17:28:49 +02:00
parent 59ed21e690
commit d5edeaf5c4

View file

@ -40,7 +40,6 @@ func main() {
data = data[:n]
r := bytes.NewReader(data)
fmt.Printf("Number of bytes: %d\n", n)
fmt.Printf("Remote addr: %v\n", remoteAddr)
publicHeader, err := quic.ParsePublicHeader(r)
@ -77,7 +76,10 @@ func main() {
panic(err)
}
fmt.Printf("Tag: %d\n", messageTag)
if messageTag != quic.TagCHLO {
panic("expected CHLO")
}
fmt.Printf("Talking to: %q\n", cryptoData[quic.TagUAID])
kex := crypto.NewCurve25519KEX()
@ -132,8 +134,6 @@ func main() {
data = data[:n]
r = bytes.NewReader(data)
fmt.Printf("%v\n", data)
publicHeader, err = quic.ParsePublicHeader(r)
if err != nil {
panic(err)