diff --git a/injector b/injector index 81277cb..dfc0845 100755 --- a/injector +++ b/injector @@ -24,6 +24,9 @@ args = parser.parse_args() f = open(args.hostsfile, 'r') for line in f: + # ignore comments and empty lines + if line.startswith('#') or line.isspace(): + continue if line.find('=') == -1: print 'Invalid line: %s' % line continue