Skip to content

Commit

Permalink
fix: unknown transport type: h2
Browse files Browse the repository at this point in the history
closes: #1012
  • Loading branch information
purofle committed Nov 11, 2023
1 parent c6caf42 commit 937523c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fmt/Link2Bean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ namespace NekoGui_fmt {
if (serverPort == -1) serverPort = 443;

// security
stream->network = GetQueryValue(query, "type", "tcp");

auto type = GetQueryValue(query, "type", "tcp");
if (type == "h2") {
type = "http";
}
stream->network = type;

if (proxy_type == proxy_Trojan) {
stream->security = GetQueryValue(query, "security", "tls").replace("reality", "tls").replace("none", "");
} else {
Expand Down

0 comments on commit 937523c

Please sign in to comment.