We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 901c44b commit 8ae04eaCopy full SHA for 8ae04ea
src/wg/darwin.go
@@ -10,9 +10,10 @@ import (
10
"text/template"
11
12
"github.com/pkg/errors"
13
+ "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
14
+
15
"github.com/zeropsio/zcli/src/i18n"
16
"github.com/zeropsio/zerops-go/dto/output"
- "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
17
)
18
19
func CheckWgInstallation() error {
@@ -46,7 +47,9 @@ var vpnTmpl = `
46
47
PrivateKey = {{.PrivateKey}}
48
49
Address = {{if .AssignedIpv4Address}}{{.AssignedIpv4Address}}/32{{end}}, {{.AssignedIpv6Address}}/128
50
+PostUp = mkdir -p /etc/resolver
51
PostUp = echo "nameserver {{.Ipv4NetworkGateway}}" > /etc/resolver/zerops
52
+PostUp = echo "domain zerops" >> /etc/resolver/zerops
53
PostDown = rm /etc/resolver/zerops
54
55
[Peer]
0 commit comments