Skip to content

Commit 8ae04ea

Browse files
jansaidlJan Saidl
andauthored
Add darwin zerops search domain (#146)
Co-authored-by: Jan Saidl <[email protected]>
1 parent 901c44b commit 8ae04ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wg/darwin.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import (
1010
"text/template"
1111

1212
"github.com/pkg/errors"
13+
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
14+
1315
"github.com/zeropsio/zcli/src/i18n"
1416
"github.com/zeropsio/zerops-go/dto/output"
15-
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
1617
)
1718

1819
func CheckWgInstallation() error {
@@ -46,7 +47,9 @@ var vpnTmpl = `
4647
PrivateKey = {{.PrivateKey}}
4748
4849
Address = {{if .AssignedIpv4Address}}{{.AssignedIpv4Address}}/32{{end}}, {{.AssignedIpv6Address}}/128
50+
PostUp = mkdir -p /etc/resolver
4951
PostUp = echo "nameserver {{.Ipv4NetworkGateway}}" > /etc/resolver/zerops
52+
PostUp = echo "domain zerops" >> /etc/resolver/zerops
5053
PostDown = rm /etc/resolver/zerops
5154
5255
[Peer]

0 commit comments

Comments
 (0)