Permalink
Browse files

Only suggest a bridge ip if NAT is enabled

  • Loading branch information...
1 parent 4b191e3 commit 4ee8126c6d219e5fe2655509974a81f34a5999e4 @jhixson74 jhixson74 committed Jun 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/pcbsd/warden/scripts/backend/startjail.sh
@@ -49,7 +49,7 @@ start_jail_vimage()
ifconfig ${BRIDGE} addm ${EPAIRA} up
# If no bridge specified, and IP4 is enabled, lets suggest one
- if [ -z "$BRIDGEIP4" -a -n "$IP4" ] ; then
+ if [ -z "$BRIDGEIP4" -a -n "$IP4" -a "${NATENABLE}" = "YES"] ; then
BRIDGEIP4="`echo $IP4 | cut -d '.' -f 1-3`.254"
fi

0 comments on commit 4ee8126

Please sign in to comment.