Unverified Commit 64e698c1 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #274 from jumpserver/v52_bai

[Update] 修改proxy日志
parents 4ce577be 441b3a5a
......@@ -118,14 +118,15 @@ class ProxyServer:
self.get_system_user_username_if_need()
self.get_system_user_auth_or_manual_set()
self.send_connecting_message()
logger.info("Connect to {}:{} ...".format(self.asset.hostname, self.asset.ssh_port))
if not self.validate_permission():
msg = _('No permission')
self.client.send_unicode(warning(wr(msg, before=2, after=0)))
server = None
elif self.system_user.protocol == 'telnet':
logger.info("Connect to {}:{} ...".format(self.asset.hostname, self.asset.telnet_port))
server = self.get_telnet_server_conn()
elif self.system_user.protocol == 'ssh':
logger.info("Connect to {}:{} ...".format(self.asset.hostname, self.asset.ssh_port))
server = self.get_ssh_server_conn()
else:
server = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment