hack: captive portal into mongoose.c