File: proxy-connectscript

package info (click to toggle)
ocserv 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,924 kB
  • sloc: ansic: 46,747; sh: 12,630; makefile: 412; xml: 29
file content (9 lines) | stat: -rwxr-xr-x 213 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#!/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