Commit 1983a493 authored by BaiJiangJie's avatar BaiJiangJie

[Update] telnet连接使用telnet_port

parent 56d75c1e
......@@ -272,7 +272,7 @@ class TelnetConnection:
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.settimeout(10)
try:
self.sock.connect((self.asset.ip, self.asset.ssh_port))
self.sock.connect((self.asset.ip, self.asset.telnet_port))
except Exception as e:
msg = 'Connect telnet server failed. \r\n{}'.format(e)
logger.error(msg)
......
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