It worked, thank you!
While DNS hijacking works for redirecting to captive portal for non-cached domains, I'd like to add redirect for all http traffic.
E.g. if user requests google.com and the device still remembers IP address captive portal woul…
The code is here: https://github.com/zjor/wemos/blob/master/mongoose-os/captive-portal/src/main.c
build command: mos build --arch esp8266 --local --verbose
Just copied some pieces from captive dns example.
One more thing is that method mg_bind_op…
I'm trying to make pure mongoose DNS captive portal work with mongoose-os library and I see that in mongoose.h dns part is commented out:
/* Amalgamated: #include "mongoose/src/dns.h" */
So things like mg_dns_reply are not accessible.