mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 21:27:35 +03:00
clean up example server debug output
This commit is contained in:
parent
59ed21e690
commit
d5edeaf5c4
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue