Commit d7190c5a authored by ibuler's avatar ibuler

[Update] 修改rdp协议判断

parent 47944573
......@@ -311,9 +311,9 @@ class InteractiveServer:
if assets and len(assets) == 1:
asset = assets[0]
self.search_result = None
if asset.platform == "Windows":
if asset.protocol == "rdp" or asset.platform.lower().startswith("windows"):
self.client.send(warning(
_("Terminal does not support login Windows, "
_("Terminal does not support login rdp, "
"please use web terminal to access"))
)
return
......
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