webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit d6d5f74f2a726eec954ad6db91fd5adb6bc1daac
parent 32f303474e2664a49b0668020dc2ad33b7095117
Author: Sheng <webmaster0115@gmail.com>
Date:   Thu, 15 Nov 2018 21:40:59 +0800

Added check_request method to MixinHandler

Diffstat:
Mwebssh/handler.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/webssh/handler.py b/webssh/handler.py @@ -61,6 +61,10 @@ class MixinHandler(object): '{reason}</body></html>') def initialize(self, loop=None): + self.check_request() + self.loop = loop + + def check_request(self): context = self.request.connection.context result = self.is_forbidden(context, self.request.host_name) self._transforms = [] @@ -75,7 +79,6 @@ class MixinHandler(object): ) self.redirect(to_url, permanent=True) else: - self.loop = loop self.context = context def is_forbidden(self, context, hostname):