aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/primitives.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/protocol/primitives.py')
-rw-r--r--libmproxy/protocol/primitives.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/libmproxy/protocol/primitives.py b/libmproxy/protocol/primitives.py
index ecf24fd7..a8c5856c 100644
--- a/libmproxy/protocol/primitives.py
+++ b/libmproxy/protocol/primitives.py
@@ -162,7 +162,7 @@ class ProtocolHandler(object):
class LiveConnection(object):
"""
This facade allows interested parties (FlowMaster, inline scripts) to
- interface with a live connection, without requiring to expose the internals
+ interface with a live connection, without exposing the internals
of the ConnectionHandler.
"""
def __init__(self, c):
@@ -188,13 +188,16 @@ class LiveConnection(object):
if ssl_mismatch or address_mismatch or force:
- self.c.log("Change server connection: %s:%s -> %s:%s [persistent: %s]" % (
- self.c.server_conn.address.host,
- self.c.server_conn.address.port,
- address.host,
- address.port,
- persistent_change
- ), "debug")
+ self.c.log(
+ "Change server connection: %s:%s -> %s:%s [persistent: %s]" % (
+ self.c.server_conn.address.host,
+ self.c.server_conn.address.port,
+ address.host,
+ address.port,
+ persistent_change
+ ),
+ "debug"
+ )
if not self._backup_server_conn and not persistent_change:
self._backup_server_conn = self.c.server_conn
@@ -227,4 +230,4 @@ class LiveConnection(object):
self.c.del_server_connection()
self.c.server_conn = self._backup_server_conn
- self._backup_server_conn = None \ No newline at end of file
+ self._backup_server_conn = None