#!/bin/sh [ -r /etc/options.cfg ] && . /etc/options.cfg [ "$SSLH_ENABLED" != "inetd" ] && echo 'inetd: false;' || echo 'inetd: true;' cat << EOF verbose: false; foreground: false; numeric: false; timeout: 2; user: "nobody"; pidfile: "/var/run/sslh.pid"; EOF [ "$FREETZ_TARGET_IPV6_SUPPORT" == "y" -a "$SSLH_IPV6TOO" == "yes" ] && listening='::' || listening='0.0.0.0' echo 'listen:' echo '(' for port in $SSLH_PORTS; do [ -n "$value" ] && echo "${value}," value="{ host: \"${listening}\"; port: \"$port\"; }" done echo "${value}" echo ');' echo 'protocols:' echo '(' cat /tmp/flash/sslh/protocols 2>/dev/null echo ');' [ -n "$SSLH_TIMEOUT" ] && echo "on-timeout: \"$SSLH_TIMEOUT\";"