diff options
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r-- | libpathod/pathod.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index db7f37f1..2ef3b0bf 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -7,6 +7,10 @@ class PathodError(Exception): pass class PathodHandler(tcp.BaseHandler): + sni = None + def handle_sni(self, connection): + self.sni = connection.get_servername() + def handle(self): if self.server.ssloptions: self.convert_to_ssl( @@ -50,6 +54,7 @@ class PathodHandler(tcp.BaseHandler): path = path, method = method, headers = headers.lst, + sni = self.sni, #remote_address = self.request.connection.address, #full_url = self.request.full_url(), #query = self.request.query, |