mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Forgot to drop port
This commit is contained in:
parent
88ca573682
commit
2f760e3e40
|
@ -147,7 +147,7 @@ SECURITY_TOKEN CNetServer::GetToken(const NETADDR &Addr)
|
||||||
SHA256_CTX Sha256;
|
SHA256_CTX Sha256;
|
||||||
sha256_init(&Sha256);
|
sha256_init(&Sha256);
|
||||||
sha256_update(&Sha256, (unsigned char*)m_SecurityTokenSeed, sizeof(m_SecurityTokenSeed));
|
sha256_update(&Sha256, (unsigned char*)m_SecurityTokenSeed, sizeof(m_SecurityTokenSeed));
|
||||||
sha256_update(&Sha256, (unsigned char*)&Addr, sizeof(Addr));
|
sha256_update(&Sha256, (unsigned char*)&Addr, sizeof(20)); //omit port, bad idea?
|
||||||
|
|
||||||
SECURITY_TOKEN SecurityToken = ToSecurityToken(sha256_finish(&Sha256).data);
|
SECURITY_TOKEN SecurityToken = ToSecurityToken(sha256_finish(&Sha256).data);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue