mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 02:06:06 +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]
|
config := fmt.Sprintf(`[Interface]
|
||||||
Address = %s
|
Address = %s
|
||||||
PrivateKey = %s
|
PrivateKey = %s
|
||||||
|
%s
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = %s
|
PublicKey = %s
|
||||||
AllowedIPs = %s
|
AllowedIPs = %s
|
||||||
Endpoint = %s
|
Endpoint = %s
|
||||||
%s
|
%s
|
||||||
%s
|
|
||||||
|
|
||||||
`, client.Address+"/32",
|
`, client.Address+"/32",
|
||||||
client.PrivateKey,
|
client.PrivateKey,
|
||||||
|
defaultDNS,
|
||||||
gwnode.PublicKey,
|
gwnode.PublicKey,
|
||||||
newAllowedIPs,
|
newAllowedIPs,
|
||||||
gwendpoint,
|
gwendpoint,
|
||||||
keepalive,
|
keepalive)
|
||||||
defaultDNS)
|
|
||||||
|
|
||||||
if params["type"] == "qr" {
|
if params["type"] == "qr" {
|
||||||
bytes, err := qrcode.Encode(config, qrcode.Medium, 220)
|
bytes, err := qrcode.Encode(config, qrcode.Medium, 220)
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
PUBKEY="DM5qhLAE20EG9BbfBEger+Ac9D2NDOwCtY1rbYDLf34="
|
PUBKEY="DM5qhLAE20EG9BbfBEger+Ac9D2NDOwCtY1rbYDLf34="
|
||||||
IPADDR="70.173.21.212"
|
IPADDR="70.173.21.212"
|
||||||
MACADDRESS="59:23:9c:f2:e4:49"
|
MACADDRESS="59:23:9c:f2:e4:49"
|
||||||
ACCESSKEY="Gsl6FKOjWi2qPGXy"
|
ACCESSKEY="DYrXDkNuXC3XQ27J"
|
||||||
PASSWORD="ppppppp"
|
PASSWORD="ppppppp"
|
||||||
|
|
||||||
generate_post_json ()
|
generate_post_json ()
|
||||||
|
Reference in New Issue
Block a user