]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add test for Packet-Src-IP-Address
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Jan 2021 18:40:19 +0000 (13:40 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Jan 2021 18:51:40 +0000 (13:51 -0500)
so it fails here instead of in the radclient tests

src/tests/keywords/packet_src_ipaddr [new file with mode: 0644]

diff --git a/src/tests/keywords/packet_src_ipaddr b/src/tests/keywords/packet_src_ipaddr
new file mode 100644 (file)
index 0000000..c423b0d
--- /dev/null
@@ -0,0 +1,6 @@
+if (&Packet-Src-IP-Address == 127.0.0.1) {
+       success
+}
+else {
+       test_fail
+}
\ No newline at end of file