-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from apernet/uri-porthop
update URI-Scheme for port hopping
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -37,7 +39,7 @@ The hostname and optional port of the server. If the port is omitted, it default | |
## Example | ||
|
||
``` | ||
hysteria2://[email protected]/?insecure=1&obfs=salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com | ||
hysteria2://[email protected]:123,5000-6000/?insecure=1&obfs=salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com | ||
``` | ||
|
||
## Implementation notes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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://[email protected]/?insecure=1&obfs=salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com | ||
hysteria2://[email protected]:123,5000-6000/?insecure=1&obfs=salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com | ||
``` | ||
|
||
## 注意事项 | ||
|