Skip to content

Commit 87d5a3e

Browse files
committed
Merge branch 'client_version_override'
2 parents 2f02c6d + 6eee3e0 commit 87d5a3e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ usage: rsp [-h] [-v {debug,info,warn,error,fatal}] [-l FILE]
5353
[--disable-uvloop] [-a BIND_ADDRESS] [-p BIND_PORT] [-n POOL_SIZE]
5454
[-B BACKOFF] [-w TIMEOUT] [-r CONNECT_RATE] [-L LOGIN]
5555
[-I KEY_FILE] [-P PASSWORD] [-H FILE]
56+
[--client-version CLIENT_VERSION]
5657
dst_address [dst_port]
5758
5859
Rapid SSH Proxy
@@ -103,6 +104,8 @@ SSH options:
103104
-H FILE, --hosts-file FILE
104105
overrides known_hosts file location (default:
105106
/home/user/.rsp/known_hosts)
107+
--client-version CLIENT_VERSION
108+
override client version string (default: None)
106109
```
107110

108111
#### Usage examples

rsp/__main__.py

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def parse_args():
8888
'known_hosts'),
8989
help="overrides known_hosts file location",
9090
metavar="FILE")
91+
ssh_group.add_argument("--client-version",
92+
help="override client version string")
9193

9294
return parser.parse_args()
9395

@@ -97,6 +99,8 @@ def ssh_options_from_args(args, known_hosts):
9799
kw['known_hosts'] = known_hosts
98100
if args.login is not None:
99101
kw['username'] = args.login
102+
if args.client_version is not None:
103+
kw['client_version'] = args.client_version
100104
if args.identity is not None:
101105
kw['client_keys'] = list(args.identity)
102106
if args.password is not None:

0 commit comments

Comments
 (0)