From 5465c4c01a38cc47e5636be0e83666693efa304e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 1 Dec 2021 21:59:22 +0000 Subject: [PATCH] netaudit: simplify --- rc/bin/netaudit | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rc/bin/netaudit b/rc/bin/netaudit index a3adccfbd..112f0fec4 100755 --- a/rc/bin/netaudit +++ b/rc/bin/netaudit @@ -136,15 +136,7 @@ fn checkauth { } 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 }