mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
tests: check whether the value set in radius' NAS-IP-Address is not invalid
This commit is contained in:
@@ -248,6 +248,12 @@ if test -z "$DISC";then
|
||||
stop
|
||||
fi
|
||||
|
||||
DISC=`cat out$TMP|grep "NAS-IP-Address = 127.0.0.1"|tail -1`
|
||||
if test -n "$DISC";then
|
||||
cat out$TMP
|
||||
echo "NAS-IP-Address has invalid value!"
|
||||
stop
|
||||
fi
|
||||
|
||||
$DOCKER stop test_ocserv_radius
|
||||
$DOCKER rm test_ocserv_radius
|
||||
|
||||
Reference in New Issue
Block a user