From f26f938c72f993435846eff4d2f14a2dbd957985 Mon Sep 17 00:00:00 2001 From: Haruue Date: Sat, 13 Jul 2024 14:42:35 +0800 Subject: [PATCH 1/3] update URI-Scheme for port hopping --- docs/docs/developers/URI-Scheme.zh.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docs/developers/URI-Scheme.zh.md b/docs/docs/developers/URI-Scheme.zh.md index a69ed5a..e472584 100644 --- a/docs/docs/developers/URI-Scheme.zh.md +++ b/docs/docs/developers/URI-Scheme.zh.md @@ -22,6 +22,8 @@ hysteria2://[auth@]hostname[:port]/?[key=value]&[key=value]... 服务器的地址和可选端口。如果省略端口,则默认为 443。 +端口部分支持 [端口跳跃](../advanced/Port-Hopping.md) 的「多端口地址格式」。 + ### 参数 - `obfs`:要使用的混淆类型。目前只支持 `salamander`。 @@ -37,7 +39,7 @@ hysteria2://[auth@]hostname[:port]/?[key=value]&[key=value]... ## 示例 ``` -hysteria2://letmein@example.com/?insecure=1&obfs=salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com +hysteria2://letmein@example.com:123,5000-6000/?insecure=1&obfs=salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com ``` ## 注意事项 From 8bc03b707bb8607bb6be4549c70c8337a1d867ae Mon Sep 17 00:00:00 2001 From: Toby Date: Mon, 22 Jul 2024 17:30:39 -0700 Subject: [PATCH 2/3] feat: en translation --- docs/docs/developers/URI-Scheme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/developers/URI-Scheme.md b/docs/docs/developers/URI-Scheme.md index 05f26a9..f77a105 100644 --- a/docs/docs/developers/URI-Scheme.md +++ b/docs/docs/developers/URI-Scheme.md @@ -22,6 +22,8 @@ The authentication credentials should be specified in the `auth` component of th The hostname and optional port of the server. If the port is omitted, it defaults to 443. +The port part supports the "multi-port" format mentioned in [Port Hopping](../advanced/Port-Hopping.md). + ### Query parameters - `obfs`: The type of obfuscation to be used. Current only `salamander` is supported. From ea0b647e9a4267fd49e42ef6c2eb8a6f53351c99 Mon Sep 17 00:00:00 2001 From: Toby Date: Mon, 22 Jul 2024 17:31:27 -0700 Subject: [PATCH 3/3] update example URI --- docs/docs/developers/URI-Scheme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/developers/URI-Scheme.md b/docs/docs/developers/URI-Scheme.md index f77a105..84ace36 100644 --- a/docs/docs/developers/URI-Scheme.md +++ b/docs/docs/developers/URI-Scheme.md @@ -39,7 +39,7 @@ The port part supports the "multi-port" format mentioned in [Port Hopping](../ad ## Example ``` -hysteria2://letmein@example.com/?insecure=1&obfs=salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com +hysteria2://letmein@example.com:123,5000-6000/?insecure=1&obfs=salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com ``` ## Implementation notes