mirror of
https://github.com/gryf/wicd.git
synced 2026-01-03 04:14:12 +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):
|
for dns in (dns1, dns2, dns3):
|
||||||
if dns:
|
if dns:
|
||||||
if misc.IsValidIP(dns):
|
if misc.IsValidIP(dns):
|
||||||
print 'Setting DNS : ' + dns
|
if self.verbose:
|
||||||
|
print 'Setting DNS : ' + dns
|
||||||
valid_dns_list.append("nameserver %s\n" % dns)
|
valid_dns_list.append("nameserver %s\n" % dns)
|
||||||
else:
|
else:
|
||||||
print 'DNS IP %s is not a valid IP address, skipping' % dns
|
print 'DNS IP %s is not a valid IP address, skipping' % dns
|
||||||
|
|||||||
Reference in New Issue
Block a user