7 ms·
Bash only version: Host github.com User git ProxyCommand /bin/bash -c 'exec 3<>/dev/tcp/$PROXY_IP/$PROXY_PORT; printf "CONNECT %h:%p HTTP/1.1\n\n" >&
by rossmohax 7y ago
Bash only version:
Host github.com
User git
ProxyCommand /bin/bash -c 'exec 3<>/dev/tcp/$PROXY_IP/$PROXY_PORT; printf "CONNECT %h:%p HTTP/1.1\n\n" >&3; cat <&3 & : ; exec cat >&3'
- JoshTriplett 7y agoSome distributions don't have /dev/tcp enabled in bash, though.
- leni536 7y agosocat can help in that case, if it's available. But I wonder if socat is available on the same distributions by default.
- vertex-four 7y agosome variant of netcat (nc) is generally available on most distros.