mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 06:42:49 +00:00
fix: Fixed the issue where the final connection verification failed when the domain name contains .
This commit is contained in:
@@ -227,7 +227,7 @@ class SSHClient:
|
||||
gateway_args = self.module.params['gateway_args'] or ''
|
||||
pattern = (
|
||||
r"(?:sshpass -p ([^ ]+))?\s*ssh -o Port=(\d+)\s+-o StrictHostKeyChecking=no\s+"
|
||||
r"([\w@]+)@([\d.]+)\s+-W %h:%p -q(?: -i (.+))?'"
|
||||
r"([^@\s]+)@([^\s]+)\s+-W %h:%p -q(?: -i ([^']+))?'"
|
||||
)
|
||||
match = re.search(pattern, gateway_args)
|
||||
if not match:
|
||||
|
Reference in New Issue
Block a user