1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-29 01:42:33 +01:00

Only print "Setting DNS" message if debug mode is on.

This commit is contained in:
Dan O'Reilly
2009-03-15 13:47:55 -04:00
parent 4d33a308bc
commit 5220203bda

View File

@@ -522,7 +522,8 @@ class BaseInterface(object):
for dns in (dns1, dns2, dns3):
if dns:
if misc.IsValidIP(dns):
print 'Setting DNS : ' + dns
if self.verbose:
print 'Setting DNS : ' + dns
valid_dns_list.append("nameserver %s\n" % dns)
else:
print 'DNS IP %s is not a valid IP address, skipping' % dns