Skip to content

Commit

Permalink
🚧 WIP on the VPN status endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
smolgroot committed Sep 22, 2024
1 parent 64244f9 commit ba80df9
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 100 deletions.
1 change: 1 addition & 0 deletions cmd/skypier-vpn/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func main() {
api.GET("/id", vpn.GetLocalPeerId(node))
api.GET("/me", vpn.GetLocalPeerDetails(node))
api.GET("/ping", utils.Ping)
api.GET("/status", vpn.GetVPNStatus)
api.GET("/nickname", utils.Nickname)
api.GET("/getConfig", utils.GetConfiguration)
api.GET("/ping/:peerId", vpn.TestConnectivity(node, dht))
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ require (
github.com/mbndr/figlet4go v0.0.0-20190224160619-d6cef5b186ea
github.com/multiformats/go-multiaddr v0.13.0
github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
github.com/swaggo/files/v2 v2.0.1
github.com/swaggo/files/v2 v2.0.1
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.0
github.com/swaggo/swag v1.16.3
github.com/vishvananda/netlink v1.3.0
golang.org/x/net v0.29.0
)

require github.com/ipfs/go-datastore v0.6.0 // indirect
Expand Down Expand Up @@ -161,6 +159,7 @@ require (
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
Expand Down
Loading

0 comments on commit ba80df9

Please sign in to comment.