mirror of
https://github.com/gryf/wicd.git
synced 2026-03-07 01:55:49 +01:00
Fix call to resolvconf when adding a DNS record (Debian: #691974)
This commit is contained in:
@@ -678,7 +678,7 @@ class BaseInterface(object):
|
|||||||
resolv_params += ''.join(valid_dns_list)
|
resolv_params += ''.join(valid_dns_list)
|
||||||
|
|
||||||
if self.resolvconf_cmd:
|
if self.resolvconf_cmd:
|
||||||
cmd = [self.resolvconf_cmd, '-a', self.iface]
|
cmd = [self.resolvconf_cmd, '-a', self.iface + '.wicd']
|
||||||
if self.verbose: print cmd
|
if self.verbose: print cmd
|
||||||
p = misc.Run(cmd, include_stderr=True, return_obj=True)
|
p = misc.Run(cmd, include_stderr=True, return_obj=True)
|
||||||
p.communicate(input=resolv_params)
|
p.communicate(input=resolv_params)
|
||||||
|
|||||||
Reference in New Issue
Block a user