changed DNS to go on interface..

This commit is contained in:
worker-9
2021-08-25 17:59:40 -04:00
parent 04350db09f
commit 1a07fcff75
2 changed files with 4 additions and 4 deletions

View File

@@ -189,21 +189,21 @@ func getExtClientConf(w http.ResponseWriter, r *http.Request) {
config := fmt.Sprintf(`[Interface]
Address = %s
PrivateKey = %s
%s
[Peer]
PublicKey = %s
AllowedIPs = %s
Endpoint = %s
%s
%s
`, client.Address+"/32",
client.PrivateKey,
defaultDNS,
gwnode.PublicKey,
newAllowedIPs,
gwendpoint,
keepalive,
defaultDNS)
keepalive)
if params["type"] == "qr" {
bytes, err := qrcode.Encode(config, qrcode.Medium, 220)