Server - Only allow AUTHCARD by root
authorJohn Hodge <[email protected]>
Sun, 19 Feb 2017 09:38:06 +0000 (17:38 +0800)
committerJohn Hodge <[email protected]>
Sun, 19 Feb 2017 09:38:06 +0000 (17:38 +0800)
src/server/server.c

index d249515..0f254b9 100644 (file)
@@ -664,10 +664,10 @@ void Server_Cmd_AUTHCARD(tClient* Client, char *Args)
        }
 
        // Check if trusted
-       if( !Client->bTrustedHost )
+       if( Client->UID != 0 )
        {
                if(giDebugLevel)
-                       Debug(Client, "Untrusted client attempting to AUTHCARD");
+                       Debug(Client, "Attempting to use AUTHCARD as non-root");
                sendf(Client->Socket, "401 Untrusted\n");
                return ;
        }

UCC git Repository :: git.ucc.asn.au