Skip to content

Commit

Permalink
Fix Single Port Redirection
Browse files Browse the repository at this point in the history
* Fix broken redirection after using single port for HTTP/WS
  • Loading branch information
hassandraga committed Jun 6, 2024
1 parent a6aee12 commit 8b715e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui.c
Original file line number Diff line number Diff line change
Expand Up @@ -6476,7 +6476,7 @@ static bool _webui_show_window(_webui_window_t * win, const char* content, int t

// Get network ports
if (win->custom_server_port > 0) win->server_port = win->custom_server_port;
else win->server_port = _webui_get_free_port();
else if (win->server_port == 0) win->server_port = _webui_get_free_port();

// Generate the server URL
win->url = (char*)_webui_malloc(32); // [http][domain][port]
Expand Down

0 comments on commit 8b715e6

Please sign in to comment.