mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 07:40:55 +03:00
Fix escaping in WildcardHostMatcher (#382)
* Escape '[' and ']' in WildcardHostMatcher * Anchoring regex to match entire string (Fixes #381)
This commit is contained in:
@@ -360,7 +360,7 @@ public class OpenSSHKnownHosts
|
||||
}
|
||||
|
||||
protected String getHostPart() {
|
||||
return hostPart;
|
||||
return hostPart;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user