mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 01:36:23 +08:00
changed DNS to go on interface..
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user