From 365f52a0e2e3786aa4d9b9896c8a96f99e496467 Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Fri, 26 Mar 2021 15:59:59 +0000 Subject: [PATCH] Add example usage of AlternativeNames config option --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ad0a2e..f380dac 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,18 @@ encryption and authentication (via AEAD or similar techniques).** `ServerName` is the domain you want to make your ISP or firewall _think_ you are visiting. Ideally it should match `RedirAddr` in the server's configuration, a major site the censor allows, but it doesn't have to. -`AlternativeNames` is an array used alongside `ServerName` to shuffle between different ServerNames for every new connection +`AlternativeNames` is an array used alongside `ServerName` to shuffle between different ServerNames for every new +connection. **This may conflict with `CDN` Transport mode** if the CDN provider prohibits domain fronting and rejects +the alternative domains. + +Example: + +```json +{ + "ServerName": "bing.com", + "AlternativeNames": ["cloudflare.com", "github.com"] +} +``` `CDNOriginHost` is the domain name of the _origin_ server (i.e. the server running Cloak) under `CDN` mode. This only has effect when `Transport` is set to `CDN`. If unset, it will default to the remote hostname supplied via the