aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-02-15 14:50:09 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-02-15 14:50:09 +1300
commit4e79904914f11396eb01a85b848af1f42ec684c9 (patch)
treedb754d26d57db48240b08633b8eb37364e853c9c /bin
parentAdd xmpp as a valid osc(1df) STARTTLS method (!) (diff)
downloaddotfiles-4e79904914f11396eb01a85b848af1f42ec684c9.tar.gz
dotfiles-4e79904914f11396eb01a85b848af1f42ec684c9.zip
Add -servername spec to osc(1df)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/osc2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/osc b/bin/osc
index 2fc05fd1..a477c699 100755
--- a/bin/osc
+++ b/bin/osc
@@ -48,6 +48,8 @@ case $serv in
set -- "$@" -starttls xmpp
;;
esac
+## Send the host parameter as the server name (SNI)
+set -- "$@" -servername "$host"
## Finally, add the host and service to connect to
set -- "$@" -connect "$host":"$serv"