write PublicHeaders for packets sent as a client

fixes #346
This commit is contained in:
Marten Seemann
2016-11-07 09:19:08 +07:00
parent ce330b94b5
commit cc2d966d84
6 changed files with 132 additions and 64 deletions

View File

@@ -26,7 +26,7 @@ var _ = Describe("UDP Proxy", func() {
ConnectionID: 1337,
TruncateConnectionID: false,
}
hdr.Write(b, protocol.Version34)
hdr.Write(b, protocol.Version34, protocol.PerspectiveServer)
raw := b.Bytes()
raw = append(raw, payload...)
return raw