From 26958d5f2465a2869db8325a0ce9b958cfab64c9 Mon Sep 17 00:00:00 2001 From: Vitaly Shukela Date: Tue, 29 Oct 2024 21:28:20 +0300 Subject: [PATCH] Update moreexamples.md --- moreexamples.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/moreexamples.md b/moreexamples.md index 156f36ac..a591f40f 100644 --- a/moreexamples.md +++ b/moreexamples.md @@ -335,3 +335,14 @@ WantedBy=multi-user.target with `SocketUser=www-data` it can be combined with Nginx setup above. Example SSH client command: `ssh root@localhost -o 'ProxyCommand=/opt/websocat -E -b - ws-c:unix:/run/qqq.socket'` + + +# Specifying distinct host names for resolving IP address, `Host: ` header and TLS. + +Example command line: + + websocat -t - --ws-c-uri=wss://domain-for-host-header/ ws-c:tls:tcp:domain-or-ip-address-for-resolving:443 --tls-domain domain-for-checking-certificate + +Or without TLS: + + websocat -t - --ws-c-uri=wss://domain-for-host-header/ ws-c:tcp:domain-or-ip-address-for-resolving:80