Skip to content

Commit

Permalink
fix: correct URL formatting in local authentication redirection
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Jan 10, 2025
1 parent 6acb5a4 commit f04a77f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ ev_http_reply_client_error(struct evhttp_request *req, enum reply_client_page_ty
case LOCAL_AUTH:
default:
char redir_url[256] = {0};
snprintf(redir_url, sizeof(redir_url), "%s://%s:%s/wifidog/local_auth?ip=%s&mac=%s", proto, ip, port, client_ip, client_mac);
snprintf(redir_url, sizeof(redir_url), "%s://%s:%s/wifidog/local_auth/?ip=%s&mac=%s", proto, ip, port, client_ip, client_mac);
debug(LOG_DEBUG, "local auth redir_url: %s", redir_url);
evb = evbuffer_new();
evbuffer_add_printf(evb, AW_LOCAL_REDIRECT_MSG, redir_url);
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

#ifndef _VERSION_
#define _VERSION_
#define VERSION "8.01.2284"
#define VERSION "8.01.2288"
#endif

0 comments on commit f04a77f

Please sign in to comment.