Files
ocserv/tests/docker-ocserv/proxy-connectscript
Nikos Mavrogiannopoulos 15d637db96 tests: connect script fixes
The connect script used for proxyproto no longer needs /tmp/connect,
it will create it.
2015-08-25 17:47:03 +02:00

11 lines
229 B
Bash
Executable File

#!/bin/sh
mkdir -p /tmp/connect
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" >/tmp/connect/ok
fi
fi
exit 0