code: plan9front

Download patch

ref: 5465c4c01a38cc47e5636be0e83666693efa304e
parent: efd4d750825fed86d48bec8913897b120410554a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Dec 1 16:59:22 EST 2021

netaudit: simplify

--- a/rc/bin/netaudit
+++ b/rc/bin/netaudit
@@ -136,15 +136,7 @@
 	}
 	if not {
 		for(i in $auth){
-			if(~ $i $sys){
-				echo '	we are the auth server '^$i
-				authisus=1
-			}
-			if not if(~ $i $dom){
-				echo '	we are the auth server '^$i
-				authisus=1
-			}
-			if not if(~ $i $ip){
+			if(~ $i $sys $dom $ip){
 				echo '	we are the auth server '^$i
 				authisus=1
 			}