Skip to content

Commit

Permalink
disable router tunnel binding by default
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Mar 25, 2024
1 parent f9d8986 commit 90203a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/dist-packages/linux/openziti-router/bootstrap.bash
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function bootstrap() {
: "${ZITI_ROUTER_ADVERTISED_ADDRESS:=${HOSTNAME:=$(hostname -f)}}"
: "${ZITI_ROUTER_NAME:=${HOSTNAME%%.*}}"
: "${ZITI_CTRL_ADVERTISED_PORT:=1280}"
: "${ZITI_ROUTER_MODE:=none}"
export ZITI_ROUTER_NAME \
ZITI_ROUTER_ADVERTISED_ADDRESS \
ZITI_CTRL_ADVERTISED_PORT \
Expand Down
2 changes: 1 addition & 1 deletion dist/dist-packages/linux/openziti-router/postinstall.bash
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ promptEnrollToken() {
promptRouterMode() {
# if undefined or default value in env file, prompt for router mode, preserving default if no answer
if [[ -z "${ZITI_ROUTER_MODE:-}" ]]; then
if ZITI_ROUTER_MODE="$(prompt 'Enter the router mode (eg. host, tproxy, proxy) [host]: ' || echo 'host')"; then
if ZITI_ROUTER_MODE="$(prompt 'Enter the router mode (eg. host, tproxy, proxy) [none]: ' || echo 'none')"; then
sed -Ei "s/^(ZITI_ROUTER_MODE)=.*/\1=${ZITI_ROUTER_MODE}/" /opt/openziti/etc/router/env
fi
fi
Expand Down

0 comments on commit 90203a4

Please sign in to comment.