mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 04:04:21 +02:00
Devices: match the host in ssh's login line case-insensitively (review round 23)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b779376f5b
commit
22863f2f87
2 files changed
+4
-1
No files matched your search
+2
-1
@@ -906,7 +906,8 @@ class Link:
|
||||
(ssh -v passes its verbosity on to ProxyJump's own ssh)."""
|
||||
host = next((o.split("=", 1)[1].replace("%%", "%") for o in opts if o.startswith("HostName=")), alias)
|
||||
m = re.search(r"Authenticated to (\S+)", line)
|
||||
return not m or m.group(1) in (host, alias) or "Authentication succeeded" in line
|
||||
# OpenSSH lower-cases host names (FRAME.LOCAL logs as frame.local).
|
||||
return not m or m.group(1).lower() in (host.lower(), alias.lower()) or "Authentication succeeded" in line
|
||||
|
||||
def failed(self, step, said, mismatch, alias):
|
||||
text = "\n".join(said).strip()
|
||||
|
||||
Reference in new issue
Block a user