summaryrefslogtreecommitdiff
path: root/plugins/shell-proxy
diff options
context:
space:
mode:
authorRuize Tang <1466040111@qq.com>2024-04-10 21:39:19 +0800
committerGitHub <noreply@github.com>2024-04-10 15:39:19 +0200
commit53c4c4671a931d9f7a3b39fe9131c6f84fe27ca5 (patch)
tree82bf1e1bd66f993e4c66f4b22825c6b30f67e543 /plugins/shell-proxy
parent605d76616aa47b2e5abe25eb26c4c9c1554f93d5 (diff)
downloadzsh-53c4c4671a931d9f7a3b39fe9131c6f84fe27ca5.tar.gz
zsh-53c4c4671a931d9f7a3b39fe9131c6f84fe27ca5.tar.bz2
zsh-53c4c4671a931d9f7a3b39fe9131c6f84fe27ca5.zip
fix(shell-proxy): support ssh-proxy using http proxy in cygwin (#12340)
Diffstat (limited to 'plugins/shell-proxy')
-rwxr-xr-xplugins/shell-proxy/ssh-proxy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/shell-proxy/ssh-proxy.py b/plugins/shell-proxy/ssh-proxy.py
index a498c84bc..4b692f9e4 100755
--- a/plugins/shell-proxy/ssh-proxy.py
+++ b/plugins/shell-proxy/ssh-proxy.py
@@ -22,7 +22,8 @@ if parsed.scheme not in proxy_protocols:
def make_argv():
yield "nc"
- if sys.platform == 'linux':
+ if sys.platform in {'linux', 'cygwin'}:
+ # caveats: the built-in netcat of most linux distributions and cygwin support proxy type
# caveats: macOS built-in netcat command not supported proxy-type
yield "-X" # --proxy-type
# Supported protocols are 4 (SOCKS v4), 5 (SOCKS v5) and connect (HTTP proxy).