mirror of
https://github.com/jtesta/ssh-audit.git
synced 2026-10-27 11:31:29 +01:00
Fix version comparison and update tests.
This commit is contained in:
1 parent
407ddbd7ea
commit
262c65b7be
2 files changed
+48
-3
No files matched your search
+1
-1
@@ -506,7 +506,7 @@ class SSH(object):
|
||||
if other is None:
|
||||
return 1
|
||||
if isinstance(other, self.__class__):
|
||||
other = '{0}{1}'.format(other.version, other.patch)
|
||||
other = '{0}{1}'.format(other.version, other.patch or '')
|
||||
else:
|
||||
other = str(other)
|
||||
mx = re.match(r'^([\d\.]+\d+)(.*)$', other)
|
||||
|
||||
Reference in new issue
Block a user