feat: add upgrade api

example: curl -X POST -H "Authorization: Bearer 123456" http://ip:port/upgrade
This commit is contained in:
Larvan2
2023-03-23 20:42:01 +08:00
parent 291b5be986
commit 99ede63a9a
6 changed files with 601 additions and 3 deletions

2
go.mod
View File

@@ -35,7 +35,7 @@ require (
github.com/sagernet/wireguard-go v0.0.0-20221116151939-c99467f53f2c
github.com/samber/lo v1.37.0
github.com/sirupsen/logrus v1.9.0
github.com/stretchr/testify v1.8.1
github.com/stretchr/testify v1.8.2
github.com/xtls/go v0.0.0-20220914232946-0441cf4cf837
github.com/zhangyunhao116/fastrand v0.3.0
go.etcd.io/bbolt v1.3.6