summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2010-12-31 20:53:42 -0800
committerAvery Pennarun <apenwarr@gmail.com>2010-12-31 20:54:46 -0800
commit91f65132be0733cdea9e451bc5e949f71b83121a (patch)
treeba16bfd31ff46c5cb9f2546f8790b4cd28c73961
parent41fd0348eb8f27d9c47d0b51c49fbf92d769ab5b (diff)
Get rid of ugly quotes on "Accept:" log messages.
-rw-r--r--client.py4
-rw-r--r--sshuttle.md6
2 files changed, 5 insertions, 5 deletions
diff --git a/client.py b/client.py
index 0301ca0..2a9d835 100644
--- a/client.py
+++ b/client.py
@@ -155,8 +155,8 @@ def _main(listener, fw, ssh_cmd, remotename, python, seed_hosts, auto_nets):
def onaccept():
sock,srcip = listener.accept()
dstip = original_dst(sock)
- debug1('Accept: %r:%r -> %r:%r.\n' % (srcip[0],srcip[1],
- dstip[0],dstip[1]))
+ debug1('Accept: %s:%r -> %s:%r.\n' % (srcip[0],srcip[1],
+ dstip[0],dstip[1]))
if dstip == listener.getsockname():
debug1("-- ignored: that's my address!\n")
sock.close()
diff --git a/sshuttle.md b/sshuttle.md
index eb2983e..d8d3d27 100644
--- a/sshuttle.md
+++ b/sshuttle.md
@@ -139,8 +139,8 @@ Test locally by proxying all local connections, without using ssh:
s: 192.168.42.0/24
c : connected.
firewall manager: starting transproxy.
- c : Accept: '192.168.42.106':50035 -> '192.168.42.121':139.
- c : Accept: '192.168.42.121':47523 -> '77.141.99.22':443.
+ c : Accept: 192.168.42.106:50035 -> 192.168.42.121:139.
+ c : Accept: 192.168.42.121:47523 -> 77.141.99.22:443.
...etc...
^C
firewall manager: undoing changes.
@@ -166,7 +166,7 @@ and subnet guessing:
hostwatch: Found: testbox1: 1.2.3.4
hostwatch: Found: mytest2: 5.6.7.8
hostwatch: Found: domaincontroller: 99.1.2.3
- c : Accept: '192.168.42.121':60554 -> '77.141.99.22':22.
+ c : Accept: 192.168.42.121:60554 -> 77.141.99.22:22.
^C
firewall manager: undoing changes.
c : Keyboard interrupt: exiting.