include source address token, server config id and server nonce in CHLO

This commit is contained in:
Marten Seemann
2016-11-10 22:30:27 +07:00
parent 0b8c883b71
commit 39e7591756
2 changed files with 38 additions and 0 deletions

View File

@@ -170,6 +170,18 @@ func (h *cryptoSetupClient) getTags() map[Tag][]byte {
binary.LittleEndian.PutUint32(versionTag, protocol.VersionNumberToTag(h.version))
tags[TagVER] = versionTag
if len(h.stk) > 0 {
tags[TagSTK] = h.stk
}
if len(h.sno) > 0 {
tags[TagSNO] = h.sno
}
if h.serverConfig != nil {
tags[TagSCID] = h.serverConfig.ID
}
return tags
}