mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-22 22:15:22 +01:00
Fix some unused variable warnings.
This commit is contained in:
parent
3ebb59108b
commit
57a8744d03
@ -1550,7 +1550,7 @@ class SSH(object): # pylint: disable=too-few-public-methods
|
|||||||
if prefer_ipvo:
|
if prefer_ipvo:
|
||||||
r = sorted(r, key=lambda x: x[0], reverse=not prefer_ipv4)
|
r = sorted(r, key=lambda x: x[0], reverse=not prefer_ipv4)
|
||||||
check = any(stype == rline[2] for rline in r)
|
check = any(stype == rline[2] for rline in r)
|
||||||
for (af, socktype, proto, canonname, addr) in r:
|
for (af, socktype, _proto, _canonname, addr) in r:
|
||||||
if not check or socktype == socket.SOCK_STREAM:
|
if not check or socktype == socket.SOCK_STREAM:
|
||||||
yield (af, addr)
|
yield (af, addr)
|
||||||
except socket.error as e:
|
except socket.error as e:
|
||||||
@ -1877,8 +1877,9 @@ def output_security_sub(sub, software, padlen):
|
|||||||
if not software.between_versions(vfrom, vtill):
|
if not software.between_versions(vfrom, vtill):
|
||||||
continue
|
continue
|
||||||
target, name = line[2:4] # type: int, str
|
target, name = line[2:4] # type: int, str
|
||||||
is_server, is_client = target & 1 == 1, target & 2 == 2
|
is_server = target & 1 == 1
|
||||||
is_local = target & 4 == 4
|
# is_client = target & 2 == 2
|
||||||
|
# is_local = target & 4 == 4
|
||||||
if not is_server:
|
if not is_server:
|
||||||
continue
|
continue
|
||||||
p = '' if out.batch else ' ' * (padlen - len(name))
|
p = '' if out.batch else ' ' * (padlen - len(name))
|
||||||
|
Loading…
Reference in New Issue
Block a user