Skip to content

Commit 4ac968e

Browse files
committed
Merge branch 'pull/20'
* Merging pull request apenwarr#20.
2 parents aa1d03f + 87d502c commit 4ac968e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ def _main(listener, fw, ssh_cmd, remotename, python, latency_control,
249249
try:
250250
(serverproc, serversock) = ssh.connect(ssh_cmd, remotename, python,
251251
stderr=ssyslog._p and ssyslog._p.stdin,
252-
options=dict(latency_control=latency_control))
252+
options=dict(latency_control=latency_control,
253+
send_nets=auto_nets))
253254
except socket.error, e:
254255
if e.args[0] == errno.EPIPE:
255256
raise Fatal("failed to establish ssh session (1)")

server.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,16 @@ def main():
164164
else:
165165
helpers.logprefix = 'server: '
166166
debug1('latency control setting = %r\n' % latency_control)
167+
debug1('send known routes = %r\n' % send_nets)
167168

168-
routes = list(list_routes())
169-
debug1('available routes:\n')
170-
for r in routes:
171-
debug1(' %s/%d\n' % r)
169+
if send_nets:
170+
routes = list(list_routes())
171+
debug1('available routes:\n')
172+
for r in routes:
173+
debug1(' %s/%d\n' % r)
174+
else:
175+
routes = list()
176+
debug1('not sending routes\n')
172177

173178
# synchronization header
174179
sys.stdout.write('\0\0SSHUTTLE0001')

0 commit comments

Comments
 (0)