aboutsummaryrefslogtreecommitdiff
path: root/net/sslh/files
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2012-11-18 16:33:31 +0000
committerHiroki Sato <hrs@FreeBSD.org>2012-11-18 16:33:31 +0000
commitf81193cbbfbd47aa2604b8031b0f7f599445ac20 (patch)
tree1ffb9d9fff08f721f8e673e137d247bc6e798adc /net/sslh/files
parent36ecb8f48195ff40a7717440c1b733cfc18f1ed9 (diff)
downloadports-f81193cbbfbd47aa2604b8031b0f7f599445ac20.tar.gz
ports-f81193cbbfbd47aa2604b8031b0f7f599445ac20.zip
Notes
Diffstat (limited to 'net/sslh/files')
-rw-r--r--net/sslh/files/sslh.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/sslh/files/sslh.in b/net/sslh/files/sslh.in
index af6b70ae7caa..16afac2d4bcf 100644
--- a/net/sslh/files/sslh.in
+++ b/net/sslh/files/sslh.in
@@ -17,7 +17,6 @@
# sslh_mode="fork | select"
# fork: stable but slow performance
# select: new but high performance
-# sslh_fib="NONE"
# sslh_pidfile="/var/run/sslh.pid"
# sslh_ssltarget="localhost:443"
# sslh_sshtarget="localhost:22"
@@ -26,9 +25,13 @@
# sslh_uid="nobody"
# sslh_flags
-sslh_setfib() {
+sslh_precmd() {
+ if command -v check_namevarlist > /dev/null 2>&1; then
+ check_namevarlist fib && return 0
+ fi
sysctl net.fibs >/dev/null 2>&1 || return 0
+ sslh_fib=${sslh_fib:-"NONE"}
case "$sslh_fib" in
[Nn][Oo][Nn][Ee])
;;
@@ -43,14 +46,13 @@ sslh_setfib() {
name="sslh"
rcvar=sslh_enable
-start_precmd="sslh_setfib"
+start_precmd="sslh_precmd"
stop_postcmd="sslh_postcmd"
load_rc_config $name
sslh_enable=${sslh_enable:-"NO"}
sslh_mode=${sslh_mode:-"fork"}
-sslh_fib=${sslh_fib:-"NONE"}
sslh_listening=${sslh_listening:-"0.0.0.0:443"}
sslh_sshtarget=${sslh_sshtarget:-"localhost:22"}
sslh_ssltarget=${sslh_ssltarget:-"localhost:8443"}