]> git.99rst.org Git - openwrt-packages.git/commit
travelmate: treat an unresolvable captive portal as an error
authorDirk Brenken <redacted>
Sat, 8 Aug 2026 12:20:50 +0000 (14:20 +0200)
committerDirk Brenken <redacted>
Sat, 8 Aug 2026 12:20:50 +0000 (14:20 +0200)
commit7f99005b4cc9675108c1c1388bc5bd64c08f41e8
tree39496bef198ed3ce055a16322f3af0ee580f3710
parent0aba856a263c72969be0735987c83ce911974923
travelmate: treat an unresolvable captive portal as an error

'trm_netcheck' only ever fired on "net nok", but f_net() reports a detected
portal as "net cp" regardless of 'trm_captive' - the option gates the portal
handling, not the detection. With 'trm_captive' disabled travelmate neither
adds the portal domain to the dhcp rebind allowlist nor runs a login script,
so that state can never resolve on its own: the uplink stayed connected as
"net cp '<domain>'" forever, the vpn was never brought up (it requires "net
ok") and 'trm_netcheck' never kicked in - travelmate stuck to exactly the
uplink the option is meant to get rid of.

Downgrade "net cp" to "net nok" in f_net() when the portal handling is off.
With 'trm_captive' enabled nothing changes.

Signed-off-by: Dirk Brenken <redacted>
net/travelmate/Makefile
net/travelmate/files/README.md
net/travelmate/files/travelmate-functions.sh
git clone https://git.99rst.org/PROJECT