mirror of
https://github.com/webui-dev/webui
synced 2025-03-28 21:13:17 +00:00
Fix Single Port Redirection
* Fix broken redirection after using single port for HTTP/WS
This commit is contained in:
parent
a6aee12de0
commit
8b715e61f3
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user