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 b4ca604518f3656ac73f54b2513e6812fee206a0
parent c35f801235703f581093ce35912d6f896a33ec45
Author: Sheng <webmaster0115@gmail.com>
Date:   Sat, 19 Jan 2019 16:57:03 +0800

Changed "|" to "or"

Diffstat:
Mwebssh/handler.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webssh/handler.py b/webssh/handler.py @@ -234,7 +234,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler): def get_hostname(self): value = self.get_value('hostname') - if not (is_valid_hostname(value) | is_valid_ip_address(value)): + if not (is_valid_hostname(value) or is_valid_ip_address(value)): raise InvalidValueError('Invalid hostname: {}'.format(value)) return value