Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call /peer/remove/username doesn't work #8

Open
douwezijlstra-frl opened this issue Dec 18, 2020 · 2 comments
Open

Call /peer/remove/username doesn't work #8

douwezijlstra-frl opened this issue Dec 18, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@douwezijlstra-frl
Copy link

Hello!

I have found a small bug. I am able to create a peer, but I can't remove them afterwards. This is what I get;

root@server:~# curl http://x.x.x.x:3000/peer/create/removetest
{
  "code": 200,
  "profile": {
    "Interface": {
      "Address": "10.9.0.5/24",
      "PrivateKey": "<hidden>",
      "DNS": "1.1.1.1, 1.0.0.1"
    },
    "Peer": {
      "PublicKey": "07G4gg98uYm0LNO+Xwon01zVnzWwFRFGTjxMJgP88AI=",
      "AllowedIPs": "0.0.0.0/0, ::/0",
      "Endpoint": "x.x.x.x:2000",
      "PersistentKeepalive": "25"
    },
    "qr": "/peer/qr/removetest"
  }
}root@server:~#
root@server:~# curl http://x.x.x.x:3000/peer/remove/removetest
{"message":"Route GET:/peer/remove/removetest not found","error":"Not Found","statusCode":404}root@server:~#

Further, very enthousiastic about this API, comes in useful!

@douwezijlstra-frl
Copy link
Author

Update: found it. Using '/client/remove/removetest' it does work. Minor error in the code then

@alectrocute
Copy link
Owner

Thanks @frykandelbroadsje! Will look into this.

@alectrocute alectrocute added the bug Something isn't working label Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants