fix: 网关测试连接 500

pull/6439/head
xinwen 3 years ago committed by Jiangjie.Bai
parent 8375008cfa
commit 26a7fa836c

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
import socket
import uuid
import random
import re
@ -80,7 +80,8 @@ class Gateway(BaseUser):
except(paramiko.AuthenticationException,
paramiko.BadAuthenticationType,
paramiko.SSHException,
paramiko.ssh_exception.NoValidConnectionsError) as e:
paramiko.ssh_exception.NoValidConnectionsError,
socket.gaierror) as e:
return False, str(e)
try:

Loading…
Cancel
Save