@@ -2341,25 +2341,25 @@ To run standalone benchmark for `proxy.py`, use the following command from repo
23412341
23422342``` console
23432343❯ proxy -h
2344- usage: -m [-h] [--tunnel-hostname TUNNEL_HOSTNAME] [--tunnel-port TUNNEL_PORT]
2345- [--tunnel-username TUNNEL_USERNAME]
2344+ usage: -m [-h] [--threadless] [--threaded] [--num-workers NUM_WORKERS]
2345+ [--enable-events] [--local-executor LOCAL_EXECUTOR]
2346+ [--backlog BACKLOG] [--hostname HOSTNAME]
2347+ [--hostnames HOSTNAMES [HOSTNAMES ...]] [--port PORT]
2348+ [--ports PORTS [PORTS ...]] [--port-file PORT_FILE]
2349+ [--unix-socket-path UNIX_SOCKET_PATH]
2350+ [--num-acceptors NUM_ACCEPTORS] [--tunnel-hostname TUNNEL_HOSTNAME]
2351+ [--tunnel-port TUNNEL_PORT] [--tunnel-username TUNNEL_USERNAME]
23462352 [--tunnel-ssh-key TUNNEL_SSH_KEY]
23472353 [--tunnel-ssh-key-passphrase TUNNEL_SSH_KEY_PASSPHRASE]
2348- [--tunnel-remote-port TUNNEL_REMOTE_PORT] [--threadless]
2349- [--threaded] [--num-workers NUM_WORKERS] [--enable-events]
2350- [--local-executor LOCAL_EXECUTOR] [--backlog BACKLOG]
2351- [--hostname HOSTNAME] [--hostnames HOSTNAMES [HOSTNAMES ...]]
2352- [--port PORT] [--ports PORTS [PORTS ...]] [--port-file PORT_FILE]
2353- [--unix-socket-path UNIX_SOCKET_PATH]
2354- [--num-acceptors NUM_ACCEPTORS] [--version] [--log-level LOG_LEVEL]
2355- [--log-file LOG_FILE] [--log-format LOG_FORMAT]
2356- [--open-file-limit OPEN_FILE_LIMIT]
2354+ [--tunnel-remote-port TUNNEL_REMOTE_PORT] [--version]
2355+ [--log-level LOG_LEVEL] [--log-file LOG_FILE]
2356+ [--log-format LOG_FORMAT] [--open-file-limit OPEN_FILE_LIMIT]
23572357 [--plugins PLUGINS [PLUGINS ...]] [--enable-dashboard]
23582358 [--basic-auth BASIC_AUTH] [--enable-ssh-tunnel]
23592359 [--work-klass WORK_KLASS] [--pid-file PID_FILE] [--openssl OPENSSL]
2360- [--data-dir DATA_DIR] [--enable-proxy-protocol] [--enable-conn-pool ]
2361- [--key-file KEY_FILE ] [--cert -file CERT_FILE ]
2362- [--client-recvbuf-size CLIENT_RECVBUF_SIZE]
2360+ [--data-dir DATA_DIR] [--ssh-listener-klass SSH_LISTENER_KLASS ]
2361+ [--enable-proxy-protocol] [--enable-conn-pool ] [--key -file KEY_FILE ]
2362+ [--cert-file CERT_FILE] [-- client-recvbuf-size CLIENT_RECVBUF_SIZE]
23632363 [--server-recvbuf-size SERVER_RECVBUF_SIZE]
23642364 [--max-sendbuf-size MAX_SENDBUF_SIZE] [--timeout TIMEOUT]
23652365 [--disable-http-proxy] [--disable-headers DISABLE_HEADERS]
@@ -2379,25 +2379,10 @@ usage: -m [-h] [--tunnel-hostname TUNNEL_HOSTNAME] [--tunnel-port TUNNEL_PORT]
23792379 [--filtered-client-ips FILTERED_CLIENT_IPS]
23802380 [--filtered-url-regex-config FILTERED_URL_REGEX_CONFIG]
23812381
2382- proxy.py v2.4.4rc6.dev85+g9335918b
2382+ proxy.py v2.4.4rc6.dev164+g73497f30
23832383
23842384options:
23852385 -h, --help show this help message and exit
2386- --tunnel-hostname TUNNEL_HOSTNAME
2387- Default: None. Remote hostname or IP address to which
2388- SSH tunnel will be established.
2389- --tunnel-port TUNNEL_PORT
2390- Default: 22. SSH port of the remote host.
2391- --tunnel-username TUNNEL_USERNAME
2392- Default: None. Username to use for establishing SSH
2393- tunnel.
2394- --tunnel-ssh-key TUNNEL_SSH_KEY
2395- Default: None. Private key path in pem format
2396- --tunnel-ssh-key-passphrase TUNNEL_SSH_KEY_PASSPHRASE
2397- Default: None. Private key passphrase
2398- --tunnel-remote-port TUNNEL_REMOTE_PORT
2399- Default: 8899. Remote port which will be forwarded
2400- locally for proxy.
24012386 --threadless Default: True. Enabled by default on Python 3.8+ (mac,
24022387 linux). When disabled a new thread is spawned to
24032388 handle each client connection.
@@ -2434,6 +2419,21 @@ options:
24342419 --host and --port flags are ignored
24352420 --num-acceptors NUM_ACCEPTORS
24362421 Defaults to number of CPU cores.
2422+ --tunnel-hostname TUNNEL_HOSTNAME
2423+ Default: None. Remote hostname or IP address to which
2424+ SSH tunnel will be established.
2425+ --tunnel-port TUNNEL_PORT
2426+ Default: 22. SSH port of the remote host.
2427+ --tunnel-username TUNNEL_USERNAME
2428+ Default: None. Username to use for establishing SSH
2429+ tunnel.
2430+ --tunnel-ssh-key TUNNEL_SSH_KEY
2431+ Default: None. Private key path in pem format
2432+ --tunnel-ssh-key-passphrase TUNNEL_SSH_KEY_PASSPHRASE
2433+ Default: None. Private key passphrase
2434+ --tunnel-remote-port TUNNEL_REMOTE_PORT
2435+ Default: 8899. Remote port which will be forwarded
2436+ locally for proxy.
24372437 --version, -v Prints proxy.py version.
24382438 --log-level LOG_LEVEL
24392439 Valid options: DEBUG, INFO (default), WARNING, ERROR,
@@ -2461,6 +2461,9 @@ options:
24612461 --openssl OPENSSL Default: openssl. Path to openssl binary. By default,
24622462 assumption is that openssl is in your PATH.
24632463 --data-dir DATA_DIR Default: ~/.proxypy. Path to proxypy data directory.
2464+ --ssh-listener-klass SSH_LISTENER_KLASS
2465+ Default: proxy.core.ssh.listener.SshTunnelListener. An
2466+ implementation of BaseSshTunnelListener
24642467 --enable-proxy-protocol
24652468 Default: False. If used, will enable proxy protocol.
24662469 Only version 1 is currently supported.
0 commit comments