Fix bad usage for exec
This commit is contained in:
parent
63f6630a0a
commit
9380493c39
1 changed files with 3 additions and 3 deletions
|
|
@ -820,9 +820,9 @@ func (t *NativeTun) setSearchDomainForSystemdResolved() {
|
||||||
if len(t.options.Inet6Address) > 0 {
|
if len(t.options.Inet6Address) > 0 {
|
||||||
dnsServer = append(dnsServer, t.options.Inet6Address[0].Addr().Next())
|
dnsServer = append(dnsServer, t.options.Inet6Address[0].Addr().Next())
|
||||||
}
|
}
|
||||||
shell.Exec(ctlPath, "domain", t.options.Name, "~.").Start()
|
go shell.Exec(ctlPath, "domain", t.options.Name, "~.").Run()
|
||||||
if t.options.AutoRoute {
|
if t.options.AutoRoute {
|
||||||
shell.Exec(ctlPath, "default-route", t.options.Name, "true").Start()
|
go shell.Exec(ctlPath, "default-route", t.options.Name, "true").Run()
|
||||||
shell.Exec(ctlPath, append([]string{"dns", t.options.Name}, common.Map(dnsServer, netip.Addr.String)...)...).Start()
|
go shell.Exec(ctlPath, append([]string{"dns", t.options.Name}, common.Map(dnsServer, netip.Addr.String)...)...).Run()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue