delete dns hijack
This commit is contained in:
parent
d0c1451995
commit
052bf9d59f
14
create_ap
14
create_ap
|
@ -41,7 +41,6 @@ usage() {
|
|||
echo " --hidden Make the Access Point hidden (do not broadcast the SSID)"
|
||||
echo " --mac-filter Enable MAC address filtering"
|
||||
echo " --mac-filter-accept Location of MAC address filter list (defaults to /etc/hostapd/hostapd.accept)"
|
||||
echo " --redirect-to-localhost If -n is set, redirect every web request to localhost (useful for public information networks)"
|
||||
echo " --hostapd-debug <level> With level between 1 and 2, passes arguments -d or -dd to hostapd for debugging."
|
||||
echo " --isolate-clients Disable communication between clients"
|
||||
echo " --ieee80211n Enable IEEE 802.11n (HT)"
|
||||
|
@ -620,8 +619,6 @@ NO_HAVEGED=0
|
|||
USE_PSK=0
|
||||
|
||||
HOSTAPD_DEBUG_ARGS=
|
||||
REDIRECT_TO_LOCALHOST=0
|
||||
|
||||
|
||||
FIX_UNMANAGED=0
|
||||
LIST_RUNNING=0
|
||||
|
@ -906,7 +903,7 @@ send_stop() {
|
|||
ARGS=( "$@" )
|
||||
|
||||
|
||||
GETOPT_ARGS=$(getopt -o hc:w:g:de:nm: -l "help","hidden","hostapd-debug:","redirect-to-localhost","mac-filter","mac-filter-accept:","isolate-clients","ieee80211n","ieee80211ac","ht_capab:","vht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","dhcp-dns:","daemon","stop:","list","list-running","list-clients:","version","psk","no-haveged","no-dns","no-dnsmasq" -n "$PROGNAME" -- "$@")
|
||||
GETOPT_ARGS=$(getopt -o hc:w:g:de:nm: -l "help","hidden","hostapd-debug:","mac-filter","mac-filter-accept:","isolate-clients","ieee80211n","ieee80211ac","ht_capab:","vht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","dhcp-dns:","daemon","stop:","list","list-running","list-clients:","version","psk","no-haveged","no-dns","no-dnsmasq" -n "$PROGNAME" -- "$@")
|
||||
[[ $? -ne 0 ]] && exit 1
|
||||
eval set -- "$GETOPT_ARGS"
|
||||
|
||||
|
@ -1061,10 +1058,6 @@ while :; do
|
|||
shift
|
||||
NO_DNSMASQ=1
|
||||
;;
|
||||
--redirect-to-localhost)
|
||||
shift
|
||||
REDIRECT_TO_LOCALHOST=1
|
||||
;;
|
||||
--hostapd-debug)
|
||||
shift
|
||||
if [ "x$1" = "x1" ]; then
|
||||
|
@ -1534,11 +1527,6 @@ EOF
|
|||
[[ -n "$MTU" ]] && echo "dhcp-option-force=option:mtu,${MTU}" >> $CONFDIR/dnsmasq.conf
|
||||
[[ $ETC_HOSTS -eq 0 ]] && echo no-hosts >> $CONFDIR/dnsmasq.conf
|
||||
[[ -n "$ADDN_HOSTS" ]] && echo "addn-hosts=${ADDN_HOSTS}" >> $CONFDIR/dnsmasq.conf
|
||||
if [[ "$SHARE_METHOD" == "none" && "$REDIRECT_TO_LOCALHOST" == "1" ]]; then
|
||||
cat << EOF >> $CONFDIR/dnsmasq.conf
|
||||
address=/#/$GATEWAY
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
# initialize WiFi interface
|
||||
|
|
Loading…
Reference in New Issue