Repository navigation
Conversation
|
more: - EnsureServerState(i.method, i.udpMasterCipher, nil, userPSK)
+ EnsureServerState(i.method, userBlock, nil, userPSK)
currentUser = sessionItem.User
userPSK = sessionItem.UserPSKIf removal should reject further UDP packets, EIH should be checked against the current |
|
@Fangliding 再看看 |
|
我在重新整 |
|
@Fangliding 上面他提到的问题解决了吗 |
|
|
I checked: each UDP packet is authenticated using the session’s cached key, but the user’s presence is not checked again. So an existing session continues working after |
|
The user is taken from the session cache, so the user lookup is skipped: currentUser = sessionItem.User
userPSK = sessionItem.UserPSK
if currentUser == nil {
// ...
user, ok := i.usersByHash.Load(decryptedHash)
}
|
|
|
|
|
psk的问题解决了 我主要是在修别的bug |
|
|
|
history里不是正常的 40/40么 |
|
btw 顺便测试这玩意还给我服务器搞墙了 应该算工伤 |
之前只初始化了一个buff读一帧 测试的时候双端都是新版本测的就没问题 但是旧版本singss实现和其他实现会发大包然后会丢
还有写多用户的时候漏了udp(