Files
ocserv/tests/scripts/proxy-connectscript
Nikos Mavrogiannopoulos d0a509c6c3 tests: introduced new proxy protocol tests
This replaces the old no longer used "docker-tests".

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2020-08-09 21:32:27 +02:00

10 lines
213 B
Bash
Executable File

#!/bin/sh
if [ "$REASON" = "connect" ];then
if test "$IP_REAL" != "127.0.0.1" && test "$IP_REAL" != "::1" && test -n "$IP_REAL_LOCAL";then
echo "$IP_REAL:$IP_REAL_LOCAL" >proxyproto-connect-ok
fi
fi
exit 0