Skip to content

Commit be49fe8

Browse files
committed
Merge branch 'pull/34'
* Merging pull request apenwarr#34.
2 parents 86f45f4 + 24352d8 commit be49fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def resolvconf_nameservers():
4646
l = []
4747
for line in open('/etc/resolv.conf'):
4848
words = line.lower().split()
49-
if len(words) >= 2 and words[0] == 'nameserver':
49+
if len(words) >= 2 and words[0] == 'nameserver' and words[1].find(':') == -1:
5050
l.append(words[1])
5151
return l
5252

0 commit comments

Comments
 (0)