forked from rapiz1/rathole
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
271 additions
and
148 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -111,7 +111,7 @@ heartbeat_timeout = 40 # Optional. Set to 0 to disable the application-layer hea | |
retry_interval = 1 # Optional. The interval between retry to connect to the server. Default: 1 second | ||
|
||
[client.transport] # The whole block is optional. Specify which transport to use | ||
type = "tcp" # Optional. Possible values: ["tcp", "tls", "noise"]. Default: "tcp" | ||
type = "tcp" # Optional. Possible values: ["tcp", "tls", "noise", "websocket", "http2"]. Default: "tcp" | ||
|
||
[client.transport.tcp] # Optional. Also affects `noise` and `tls` | ||
proxy = "socks5://user:[email protected]:1080" # Optional. The proxy used to connect to the server. `http` and `socks5` is supported. | ||
|
@@ -131,6 +131,9 @@ remote_public_key = "key_encoded_in_base64" # Optional | |
[client.transport.websocket] # Necessary if `type` is "websocket" | ||
tls = true # If `true` then it will use settings in `client.transport.tls` | ||
|
||
[client.transport.http2] # Necessary if `type` is "http2" | ||
tls = true # If `true` then it will use settings in `client.transport.tls` | ||
|
||
[client.services.service1] # A service that needs forwarding. The name `service1` can change arbitrarily, as long as identical to the name in the server's configuration | ||
type = "tcp" # Optional. The protocol that needs forwarding. Possible values: ["tcp", "udp"]. Default: "tcp" | ||
token = "whatever" # Necessary if `client.default_token` not set | ||
|
@@ -166,6 +169,9 @@ remote_public_key = "key_encoded_in_base64" | |
[server.transport.websocket] # Necessary if `type` is "websocket" | ||
tls = true # If `true` then it will use settings in `server.transport.tls` | ||
|
||
[server.transport.http2] # Necessary if `type` is "http2" | ||
tls = true # If `true` then it will use settings in `server.transport.tls` | ||
|
||
[server.services.service1] # The service name must be identical to the client side | ||
type = "tcp" # Optional. Same as the client `[client.services.X.type] | ||
token = "whatever" # Necessary if `server.default_token` not set | ||
|
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
Oops, something went wrong.