Before, I just execute the command in terminal:
settings put global captive_portal_server 127.0.0.1 && settings put global captive_portal_detection_enabled 0
And everything worked fine. But now the captive portal window "Join Wifi" appears again, giving error:
Not Found for page 127.0.0.1/generate_204.
I use Samsung Galaxy A5 2016 Android 6, if it matters. How to disable this terrible awful detection?