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
|
ip addr flush ${VWIFI_IFACE} || die
|
||||||
if [[ "$SHARE_METHOD" != "bridge" ]]; then
|
if [[ "$SHARE_METHOD" != "bridge" ]]; then
|
||||||
ip link set up dev ${VWIFI_IFACE} || die
|
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
|
fi
|
||||||
|
|
||||||
# enable Internet sharing
|
# enable Internet sharing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user