mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 21:15:03 -05:00
Discard hashed hostnames from input.
[originally from svn r8518]
This commit is contained in:
parent
542fc983bb
commit
54c3773c91
@ -128,6 +128,9 @@ for line in fileinput.input(args):
|
|||||||
sys.stderr.write("Skipping wildcard host pattern '%s'\n"
|
sys.stderr.write("Skipping wildcard host pattern '%s'\n"
|
||||||
% host)
|
% host)
|
||||||
continue
|
continue
|
||||||
|
elif re.match (r"\|", host):
|
||||||
|
sys.stderr.write("Skipping hashed hostname '%s'\n" % host)
|
||||||
|
continue
|
||||||
else:
|
else:
|
||||||
# Slightly bizarre key format: 'type@port:hostname'
|
# Slightly bizarre key format: 'type@port:hostname'
|
||||||
# As far as I know, the input never specifies a port.
|
# As far as I know, the input never specifies a port.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user