diff --git a/src/auth.c b/src/auth.c index 0fba213..1fcaa12 100644 --- a/src/auth.c +++ b/src/auth.c @@ -123,9 +123,12 @@ static void http_callback_404(struct uh_client *cl) { struct config *conf = get_config(); static const char *redirect_html = "" - "Success" + "Success" "" + "setTimeout(function() {location.replace('%s&ip=%s&mac=%s');}, 1);" + "" "Success"; const char *remote_addr = cl->get_peer_addr(cl); const char *host = cl->get_header(cl, "host");