Stabilize TeamSpeak connection: implement command compression, fragmentation, and fix MAC/flags
This commit is contained in:
@@ -290,7 +290,8 @@ func (h *HandshakeState) ProcessInitivexpand2(cmdArgs map[string]string) error {
|
||||
|
||||
// SharedMac = SHA1(SharedIV)[0..8]
|
||||
macHash := sha1.Sum(h.SharedIV)
|
||||
copy(h.SharedMac[:], macHash[0:8])
|
||||
h.SharedMac = make([]byte, 8)
|
||||
copy(h.SharedMac, macHash[0:8])
|
||||
|
||||
log.Printf("Debug - SharedSecret (SHA512): %s", hex.EncodeToString(h.SharedSecret))
|
||||
log.Printf("Debug - SharedIV: %s", hex.EncodeToString(h.SharedIV))
|
||||
|
||||
Reference in New Issue
Block a user