add protocol to printed info

This commit is contained in:
tschettervictor
2024-12-11 11:36:10 -07:00
committed by GitHub
parent 2cff4048d1
commit 4b5655470a

View File

@@ -155,7 +155,7 @@ if [ -n "$JAIL_IP6" ]; then
fi fi
info "[${JAIL_NAME}]:" info "[${JAIL_NAME}]:"
info "Redirecting:" info "Redirecting:"
info "${src}:${host_port} -> ${dst}:${jail_port} on ${1}" info "${proto} ${src}:${host_port} -> ${dst}:${jail_port} on ${1}"
} }
# function: load rdr rule with log via pfctl # function: load rdr rule with log via pfctl
@@ -178,7 +178,7 @@ if [ -n "$JAIL_IP6" ]; then
fi fi
info "[${JAIL_NAME}]:" info "[${JAIL_NAME}]:"
info "Redirecting:" info "Redirecting:"
info "${src}:${host_port} -> ${dst}:${jail_port} on ${1}" info "${proto} ${src}:${host_port} -> ${dst}:${jail_port} on ${1}"
} }