Skip to content

Commit

Permalink
Merge pull request #27 from apernet/uri-porthop
Browse files Browse the repository at this point in the history
update URI-Scheme for port hopping
  • Loading branch information
tobyxdd authored Jul 23, 2024
2 parents b98ca66 + ea0b647 commit a05faf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/docs/developers/URI-Scheme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion docs/docs/developers/URI-Scheme.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ hysteria2://[auth@]hostname[:port]/?[key=value]&[key=value]...

服务器的地址和可选端口。如果省略端口,则默认为 443。

端口部分支持 [端口跳跃](../advanced/Port-Hopping.md) 的「多端口地址格式」。

### 参数

- `obfs`:要使用的混淆类型。目前只支持 `salamander`
Expand All @@ -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
```

## 注意事项
Expand Down

0 comments on commit a05faf8

Please sign in to comment.