diff --git a/create_ap b/create_ap index 5c615c5..e8a658e 100755 --- a/create_ap +++ b/create_ap @@ -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