Skip to content

Commit

Permalink
Merge pull request #3 from the-c0d3r/patch-1
Browse files Browse the repository at this point in the history
Filter out loopback ip from /etc/hosts
  • Loading branch information
isometry authored Jul 13, 2019
2 parents 9fa8b81 + f5d173e commit 4e37cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alfredssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def parse_file(open_file, parser):
'hosts':
(
host for line in open_file
if not line.startswith('#')
if not line.startswith('#') and not line.startswith("127.0.0.1")
for host in line.split()[1:]
if host != 'broadcasthost'
),
Expand Down

0 comments on commit 4e37cee

Please sign in to comment.