Skip to content

Commit

Permalink
Only suggest a bridge ip if NAT is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
John Hixson committed Jun 26, 2013
1 parent 4b191e3 commit 4ee8126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcbsd/warden/scripts/backend/startjail.sh
Expand Up @@ -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

Expand Down

0 comments on commit 4ee8126

Please sign in to comment.