From b970f34af23fe856b923d4d74afe799bce496d57 Mon Sep 17 00:00:00 2001 From: Rikpat Date: Fri, 5 Apr 2024 00:28:25 +0200 Subject: [PATCH] fix: temporarily removed DNS --- Dockerfile | 5 +++-- pkg/wireguard/config.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e008bf..7173105 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,9 @@ COPY --chmod="111" ./purevpnwg-${TARGETOS}-${TARGETARCH} /bin/purevpnwg ENV PUREVPN_USERNAME="" ENV PUREVPN_PASSWORD="" -ENV PUREVPN_SERVER_COUNTRY="DE" -ENV PUREVPN_SERVER_CITY="2762" +ENV PUREVPN_SERVER_COUNTRY="US" +# New York +ENV PUREVPN_SERVER_CITY="8778" ENV PUREVPN_WIREGUARD_FILE="/out/wg0.conf" ENTRYPOINT ["/bin/purevpnwg", "full"] \ No newline at end of file diff --git a/pkg/wireguard/config.go b/pkg/wireguard/config.go index 6286425..6919f96 100644 --- a/pkg/wireguard/config.go +++ b/pkg/wireguard/config.go @@ -59,7 +59,7 @@ func UpdateConfig(newConfig []byte, config *util.Config) error { iface := wgConfFile.Section("Interface") iface.Key("Address").SetValue(wgConf.Interface.Address) iface.Key("PrivateKey").SetValue(wgConf.Interface.PrivateKey) - iface.Key("DNS").SetValue(wgConf.Interface.DNS) + // iface.Key("DNS").SetValue(wgConf.Interface.DNS) peer := wgConfFile.Section("Peer") peer.Key("PublicKey").SetValue(wgConf.Peer.PublicKey)