mirror of https://github.com/jumpserver/jumpserver
modify port type
parent
38f89042ac
commit
bf80799fb6
|
@ -365,7 +365,7 @@ def get_user_host(username):
|
|||
|
||||
def get_connect_item(username, ip):
|
||||
asset = get_object(Asset, ip=ip)
|
||||
port = asset.port
|
||||
port = int(asset.port)
|
||||
|
||||
if not asset.is_active:
|
||||
raise ServerError('Host %s is not active.' % ip)
|
||||
|
|
Loading…
Reference in New Issue