mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
测试:尝试增加hysteria2协议,尝试增加设备数限制功能
This commit is contained in:
@@ -16,13 +16,14 @@ import (
|
||||
// Panel is the interface for different panel's api.
|
||||
|
||||
type Client struct {
|
||||
client *resty.Client
|
||||
APIHost string
|
||||
Token string
|
||||
NodeType string
|
||||
NodeId int
|
||||
nodeEtag string
|
||||
userEtag string
|
||||
client *resty.Client
|
||||
APIHost string
|
||||
Token string
|
||||
NodeType string
|
||||
NodeId int
|
||||
nodeEtag string
|
||||
userEtag string
|
||||
LastReportOnline map[int]int
|
||||
}
|
||||
|
||||
func New(c *conf.ApiConfig) (*Client, error) {
|
||||
@@ -52,6 +53,7 @@ func New(c *conf.ApiConfig) (*Client, error) {
|
||||
"trojan",
|
||||
"shadowsocks",
|
||||
"hysteria",
|
||||
"hysteria2",
|
||||
"vless":
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupported Node type: %s", c.NodeType)
|
||||
|
||||
Reference in New Issue
Block a user