From 1f5b36f45ccb8ff5e434e769887ffca8ef96d9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20L=C3=B6per?= Date: Tue, 3 Sep 2019 20:09:23 +0200 Subject: [PATCH] Add static ips for certain captive portal check urls from: https://github.com/tretos53/Captive-Portal/blob/master/dnsmasq.conf --- iotwifi/commands.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/iotwifi/commands.go b/iotwifi/commands.go index 8e11774..5df7912 100644 --- a/iotwifi/commands.go +++ b/iotwifi/commands.go @@ -75,6 +75,13 @@ func (c *Command) StartDnsmasq() { "--dhcp-authoritative", "--log-facility=-", "--dhcp-option-force=160,\"http://0.0.0.0/\"", // see: https://tools.ietf.org/html/rfc7710 + "address=/hotspot.localnet/192.168.24.1", + "address=/connectivitycheck.gstatic.com/216.58.206.131", + "address=/www.gstatic.com/216.58.206.99", + "address=/www.apple.com/2.16.21.112", + "address=/captive.apple.com/17.253.35.204", + "address=/clients3.google.com/216.58.204.46", + "address=/www.msftconnecttest.com/13.107.4.52", } cmd := exec.Command("dnsmasq", args...)