If a server uses the protocol but is not signed, the code previously did
not let a client connect to the server more than once per instance.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12226
d7cf8633-e32d-0410-b094-
e92efae38249
::stable-branch::merge=
59aa859f4004bb78b28fafaac095af2e2cc34300
}
// cache the server key
- Crypto_StoreHostKey(&cls.connect_address, va(vabuf, sizeof(vabuf), "%d %s@%s", crypto->use_aes ? 1 : 0, crypto->server_idfp, pubkeys_fp64[CDATA->s]), false);
+ Crypto_StoreHostKey(&cls.connect_address, va(vabuf, sizeof(vabuf), "%d %s@%s%s", crypto->use_aes ? 1 : 0, crypto->server_idfp, crypto->server_issigned ? "" : "~", pubkeys_fp64[CDATA->s]), false);
if(CDATA->c >= 0)
{