diff --git a/controllers/extClientHttpController.go b/controllers/extClientHttpController.go index fde78cb4..32a567bc 100644 --- a/controllers/extClientHttpController.go +++ b/controllers/extClientHttpController.go @@ -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) diff --git a/test/nodecreate.sh b/test/nodecreate.sh index 795264e6..7098faa2 100755 --- a/test/nodecreate.sh +++ b/test/nodecreate.sh @@ -3,7 +3,7 @@ PUBKEY="DM5qhLAE20EG9BbfBEger+Ac9D2NDOwCtY1rbYDLf34=" IPADDR="70.173.21.212" MACADDRESS="59:23:9c:f2:e4:49" -ACCESSKEY="Gsl6FKOjWi2qPGXy" +ACCESSKEY="DYrXDkNuXC3XQ27J" PASSWORD="ppppppp" generate_post_json ()