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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user