wg-api icon indicating copy to clipboard operation
wg-api copied to clipboard

Peer Public Key missing

Open yaroslavsnisarua opened this issue 4 years ago • 1 comments

Hello! First of all thanks for this software!

But i have a small problem. When i generate new user:

:3000/peer/create/newclient

the response is empty public key and qr code not correct reading by phone device without public key.

{
  "code": 200,
  "profile": {
    "Interface": {
      "Address": "10.9.0.2/24",
      "PrivateKey": "somekey",
      "DNS": "1.1.1.1, 1.0.0.1"
    },
    "Peer": {
      "PublicKey": "",
      "AllowedIPs": "0.0.0.0/0, ::/0",
      "Endpoint": "myip:2000",
      "PersistentKeepalive": "25"
    },
    "qr": "/peer/qr/newclient"
  }
}

as you can see, the PublicKey is empty.

yaroslavsnisarua avatar Dec 16 '20 16:12 yaroslavsnisarua

@ceo-zenlix Would you kindly share the details of the machine/OS you're running this on? Thanks!

alectrocute avatar Dec 17 '20 17:12 alectrocute