Skip to content

README.md: describe client RemoteHost option#233

Open
selivan wants to merge 1 commit intocbeuw:masterfrom
selivan:patch-1
Open

README.md: describe client RemoteHost option#233
selivan wants to merge 1 commit intocbeuw:masterfrom
selivan:patch-1

Conversation

@selivan
Copy link
Copy Markdown

@selivan selivan commented Sep 6, 2023

No description provided.

`Transport` can be either `direct` or `CDN`. If the server host wishes you to connect to it directly, use `direct`. If
instead a CDN is used, use `CDN`.

`RemoteHost` required if direct connection is used. Format: `<IP or domain name>[:port]`
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RemoteHost is configurable from the config file (so it should be documented), but it isn't required to be in the config file, as it could be supplied through the environment variable (used by Shadowsocks) or through the CLI options. The config file parser is called after these sources for RemoteHost are checked

https://github.com/cbeuw/Cloak/blob/master/cmd/ck-client/ck-client.go#L142

@selivan selivan closed this Sep 9, 2023
@selivan selivan reopened this Sep 9, 2023
@selivan
Copy link
Copy Markdown
Author

selivan commented Sep 9, 2023

If Cloak is used as transport for OpenVPN, it can not take remote host from environment. Sometimes having it in config file is more convenient, than pass it by command argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants