Protocol is numbers.

This commit is contained in:
Andris Raugulis 2016-09-07 13:00:53 +03:00
parent 2ae93b1934
commit 280a37ba20

View File

@ -253,6 +253,7 @@ class SSH(object):
if mx is None:
return None
protocol = min(re.findall(cls._RXP, mx.group(1)))
protocol = (int(protocol[0]), int(protocol[1]))
software = (mx.group(9) or '').strip() or None
if software is None and mx.group(8).startswith('-'):
software = ''