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 d07eb5b910aae140af127a0935b5d7767c771a73
parent fea58f762bf47782839aca916bfa2d2343df7798
Author: Sheng <webmaster0115@gmail.com>
Date:   Tue,  6 Mar 2018 07:13:12 +0800

Reject cross-origin traffic

Diffstat:
Mmain.py | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/main.py b/main.py @@ -224,9 +224,6 @@ class WsockHandler(tornado.websocket.WebSocketHandler): self.worker_ref = None super(self.__class__, self).__init__(*args, **kwargs) - def check_origin(self, origin): - return True - def get_addr(self): ip = self.request.headers.get_list('X-Real-Ip') port = self.request.headers.get_list('X-Real-Port')