dnsmasq: Use dhcp-option-force instead of dhcp-option

This commit is contained in:
oblique 2015-09-20 15:50:41 +03:00
parent 348b6e728a
commit dd7f801f73

View File

@ -1532,10 +1532,10 @@ else
listen-address=${GATEWAY} listen-address=${GATEWAY}
${DNSMASQ_BIND} ${DNSMASQ_BIND}
dhcp-range=${GATEWAY%.*}.1,${GATEWAY%.*}.254,255.255.255.0,24h dhcp-range=${GATEWAY%.*}.1,${GATEWAY%.*}.254,255.255.255.0,24h
dhcp-option=option:router,${GATEWAY} dhcp-option-force=option:router,${GATEWAY}
EOF EOF
MTU=$(get_mtu $INTERNET_IFACE) MTU=$(get_mtu $INTERNET_IFACE)
[[ -n "$MTU" ]] && echo "dhcp-option=option:mtu,${MTU}" >> $CONFDIR/dnsmasq.conf [[ -n "$MTU" ]] && echo "dhcp-option-force=option:mtu,${MTU}" >> $CONFDIR/dnsmasq.conf
[[ $ETC_HOSTS -eq 0 ]] && echo no-hosts >> $CONFDIR/dnsmasq.conf [[ $ETC_HOSTS -eq 0 ]] && echo no-hosts >> $CONFDIR/dnsmasq.conf
fi fi