Skip to content

Commit

Permalink
Update moreexamples.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vi authored Oct 29, 2024
1 parent 258e7e8 commit 26958d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions moreexamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 26958d5

Please sign in to comment.