mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
update to v1.1.0
change to uniproxy api refactor build inbound refactor limiter and rule add ss2022 support add speedlimit support and more...
This commit is contained in:
20
api/panel/node_test.go
Normal file
20
api/panel/node_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user