summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.py')
-rwxr-xr-xproxy.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/proxy.py b/proxy.py
index 320ae9f..312b056 100755
--- a/proxy.py
+++ b/proxy.py
@@ -151,6 +151,10 @@ def make_proxy(local_port, remote_addr, host = '127.0.0.1',
del open_socks[s]
return
def completer():
+ """
+ default completion of proxy action.
+ sends data to destination port.
+ """
if check_drop_next():
return
try:
@@ -163,7 +167,8 @@ def make_proxy(local_port, remote_addr, host = '127.0.0.1',
del open_socks[s]
assert(len(open_socks) == n - 1)
else:
- import pdb; pdb.set_trace()
+ print "Caught exception writing: %s" % repr(e)
+ #import pdb; pdb.set_trace()
return src, dst, data, other, completer
def select_based_iterator():
packet_iter = iterate_packets()