mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
fix(shell-proxy): support ssh using http proxy in cygwin
the ssh-proxy.py generates `nc` commands to connect the proxy, however, in cygwin, it does not set the protocol type, leading to nc using wrong default protocol (socks5) if we actually use an http proxy.
This commit is contained in:
parent
f85f501bcf
commit
c1c9416e3a
1 changed files with 2 additions and 1 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue