i hate auth grr

This commit is contained in:
kai
2026-10-25 21:40:25 +00:00
parent 72f0aef305
commit cbe737524d
4 changed files with 10 additions and 16 deletions
+3 -14
View File
@@ -1204,20 +1204,9 @@ struct servercommandline
// client: dtwhzbsave
switch(arg[1])
{ // todo: gjlqEJQU
case 'Y': // private server key
{
bool allas = true; // a is all A's?
loopi(strlen(a)){ if(a[i]!='A') allas = false; }
if(allas)
{
printf("KEY FAILURE: you provided the (inacceptable) example private key.\nKEY FAILURE: generate your own - read: https://assault.cubers.net/docs/server.html\n");
}
else
{
ssk = a;
}
}
break;
case 'Y': // private server key (optional, only needed to register with the masterserver)
ssk = a;
break;
case '-':
if(!strncmp(arg, "--masterport=", 13))
{
-1
View File
@@ -364,7 +364,6 @@ void servermsinit(bool listen)
if(!usemaster){
mlog(ACLOG_INFO, "server is LAN-only - without connection to masterserver");
if(listen){
if(!scl.ssk) mlog(ACLOG_INFO, "ACTION REQUIRED: you must provide a PRIVATE SERVER KEY via the '-Y' command line argument");
if(!scl.master) mlog(ACLOG_INFO, "LAN-only because no master is given");
if(scl.maxclients>MAXCLIENTSONMASTER) mlog(ACLOG_INFO, "LAN-only because too many clients for master");
}