зеркало из https://github.com/github/putty.git
Discard hashed hostnames from input.
[originally from svn r8518]
This commit is contained in:
Родитель
542fc983bb
Коммит
54c3773c91
|
@ -128,6 +128,9 @@ for line in fileinput.input(args):
|
|||
sys.stderr.write("Skipping wildcard host pattern '%s'\n"
|
||||
% host)
|
||||
continue
|
||||
elif re.match (r"\|", host):
|
||||
sys.stderr.write("Skipping hashed hostname '%s'\n" % host)
|
||||
continue
|
||||
else:
|
||||
# Slightly bizarre key format: 'type@port:hostname'
|
||||
# As far as I know, the input never specifies a port.
|
||||
|
|
Загрузка…
Ссылка в новой задаче