V2bX/api/panel/node_test.go
Yuzuki999 695da4f4c5 update to v1.1.0
change to uniproxy api
refactor build inbound
refactor limiter and rule
add ss2022 support
add speedlimit support
and more...
2022-12-18 23:31:06 +08:00

21 lines
367 B
Go

package panel
import (
"github.com/Yuzuki616/V2bX/conf"
"github.com/Yuzuki616/V2bX/node/controller/legoCmd/log"
"testing"
)
func TestClient_GetNodeInfo(t *testing.T) {
c, err := New(&conf.ApiConfig{
APIHost: "http://127.0.0.1",
Key: "token",
NodeType: "V2ray",
NodeID: 1,
})
if err != nil {
log.Print(err)
}
log.Println(c.GetNodeInfo())
}