mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
695da4f4c5
change to uniproxy api refactor build inbound refactor limiter and rule add ss2022 support add speedlimit support and more...
21 lines
367 B
Go
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())
|
|
}
|