fixing extclient controller

This commit is contained in:
root
2021-05-20 02:09:48 +00:00
parent 47f5dc95dc
commit c5c38f0856
2 changed files with 4 additions and 4 deletions

View File

@@ -207,19 +207,19 @@ 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
`, extclient.Address + "/32",
extclient.PrivateKey,
keepalive,
gwnode.PublicKey,
network.AddressRange,
gwendpoint)
gwendpoint,
keepalive)
if params["type"] == "qr" {
bytes, err := qrcode.Encode(config, qrcode.Medium, 220)