Skip to content

Commit

Permalink
Allow http prefix for reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Icelk committed Oct 23, 2024
1 parent 7dd796c commit 5c10106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ fn parse_connection(s: &str) -> Result<kvarn_extensions::Connection> {
current
};

if let Some(socket) = s.strip_prefix("tcp:") {
if let Some(socket) = s.strip_prefix("tcp:").or(s.strip_prefix("http:")) {
let socket = socket.strip_prefix("//").unwrap_or(socket);
let socket = select_addr(
socket
Expand Down

0 comments on commit 5c10106

Please sign in to comment.