fix get node info and node rule error

This commit is contained in:
yuzuki999
2022-06-06 15:23:40 +08:00
parent 9b78155786
commit b607b8eb4a
3 changed files with 26 additions and 18 deletions

View File

@@ -78,7 +78,7 @@ func New(apiConfig *Config) API {
})
// Read local rule list
localRuleList := readLocalRuleList(apiConfig.RuleListPath)
apiClient := &Client{
return &Client{
client: client,
NodeID: apiConfig.NodeID,
Key: apiConfig.Key,
@@ -91,5 +91,4 @@ func New(apiConfig *Config) API {
DeviceLimit: apiConfig.DeviceLimit,
LocalRuleList: localRuleList,
}
return apiClient
}