Set broadcast ip address
This commit is contained in:
parent
67588aa7a7
commit
d03951bf29
@ -361,7 +361,7 @@ ip link set down dev ${VWIFI_IFACE} || die
|
||||
ip addr flush ${VWIFI_IFACE} || die
|
||||
if [[ "$SHARE_METHOD" != "bridge" ]]; then
|
||||
ip link set up dev ${VWIFI_IFACE} || die
|
||||
ip addr add ${GATEWAY}/24 dev ${VWIFI_IFACE} || die
|
||||
ip addr add ${GATEWAY}/24 broadcast ${GATEWAY%.*}.255 dev ${VWIFI_IFACE} || die
|
||||
fi
|
||||
|
||||
# enable Internet sharing
|
||||
|
Loading…
Reference in New Issue
Block a user