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
No known key found for this signature in database
GPG key ID: 3603F40B121FCDEA
6 changed files with 132 additions and 64 deletions

View file

@ -237,7 +237,7 @@ func composeVersionNegotiation(connectionID protocol.ConnectionID) []byte {
PacketNumber: 1,
VersionFlag: true,
}
err := responsePublicHeader.Write(fullReply, protocol.Version35)
err := responsePublicHeader.Write(fullReply, protocol.Version35, protocol.PerspectiveServer)
if err != nil {
utils.Errorf("error composing version negotiation packet: %s", err.Error())
}