diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2014-01-30 20:06:33 +0100 | 
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2014-01-30 20:06:33 +0100 | 
| commit | b64e1ccf9152d5f7fc7a933e1b77d18185fecb22 (patch) | |
| tree | fc1709b02d4a2de088ecff00d25974bd5513cbc2 | |
| parent | b994fb5a2753c4b6ceff75a9227880a0127c5a93 (diff) | |
| download | mitmproxy-b64e1ccf9152d5f7fc7a933e1b77d18185fecb22.tar.gz mitmproxy-b64e1ccf9152d5f7fc7a933e1b77d18185fecb22.tar.bz2 mitmproxy-b64e1ccf9152d5f7fc7a933e1b77d18185fecb22.zip | |
adjust for netlib.tcp.Address changes
| -rw-r--r-- | libpathod/pathod.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 2d964ef5..e71701fb 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -21,7 +21,7 @@ class PathodHandler(tcp.BaseHandler):      wbufsize = 0      sni = None      def info(self, s): -        logger.info("%s:%s: %s"%(self.address[0], self.address[1], str(s))) +        logger.info("%s:%s: %s"%(self.address.host, self.address.port, str(s)))      def handle_sni(self, connection):          self.sni = connection.get_servername() @@ -118,7 +118,7 @@ class PathodHandler(tcp.BaseHandler):              headers = headers.lst,              httpversion = httpversion,              sni = self.sni, -            remote_address = self.address, +            remote_address = self.address(),              clientcert = clientcert          ) @@ -155,7 +155,7 @@ class PathodHandler(tcp.BaseHandler):              return False, dict(type = "error", msg="Access denied: web interface disabled")          else:              self.info("app: %s %s"%(method, path)) -            cc = wsgi.ClientConn(self.address) +            cc = wsgi.ClientConn(self.address())              req = wsgi.Request(cc, "http", method, path, headers, content)              sn = self.connection.getsockname()              a = wsgi.WSGIAdaptor( | 
