Skip to content

Commit

Permalink
Add darwin zerops search domain (#146)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Saidl <saidl@vshosting.cz>
  • Loading branch information
jansaidl and Jan Saidl authored Apr 27, 2024
1 parent 901c44b commit 8ae04ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wg/darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (
"text/template"

"github.com/pkg/errors"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"

"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zerops-go/dto/output"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
)

func CheckWgInstallation() error {
Expand Down Expand Up @@ -46,7 +47,9 @@ var vpnTmpl = `
PrivateKey = {{.PrivateKey}}
Address = {{if .AssignedIpv4Address}}{{.AssignedIpv4Address}}/32{{end}}, {{.AssignedIpv6Address}}/128
PostUp = mkdir -p /etc/resolver
PostUp = echo "nameserver {{.Ipv4NetworkGateway}}" > /etc/resolver/zerops
PostUp = echo "domain zerops" >> /etc/resolver/zerops
PostDown = rm /etc/resolver/zerops
[Peer]
Expand Down

0 comments on commit 8ae04ea

Please sign in to comment.