Argument processing fixes. Misc proxy fixes.

This commit is contained in:
Joel Martin
2010-06-17 17:05:33 -05:00
parent 6ee61a4cf6
commit ee26cbf24d
5 changed files with 28 additions and 33 deletions
+3 -2
View File
@@ -101,7 +101,7 @@ def proxy_handler(client):
if settings['record']:
print "Opening record file: %s" % settings['record']
rec = open(settings['record'], 'w')
rec = open(settings['record'], 'a')
print "Connecting to: %s:%s" % (target_host, target_port)
tsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
@@ -152,5 +152,6 @@ if __name__ == '__main__':
settings['cert'] = os.path.abspath(options.cert)
settings['ssl_only'] = options.ssl_only
settings['daemon'] = options.daemon
settings['record'] = os.path.abspath(options.record)
if options.record:
settings['record'] = os.path.abspath(options.record)
start_server()