summaryrefslogtreecommitdiff
path: root/rc/bin
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-12-01 21:59:22 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-12-01 21:59:22 +0000
commit5465c4c01a38cc47e5636be0e83666693efa304e (patch)
tree35f68aa6da99d25d67b9356635ac07c573984233 /rc/bin
parentefd4d750825fed86d48bec8913897b120410554a (diff)
netaudit: simplify
Diffstat (limited to 'rc/bin')
-rwxr-xr-xrc/bin/netaudit10
1 files changed, 1 insertions, 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
}