mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
尝试修复节点删除后仍可使用的BUG
This commit is contained in:
parent
c1f36bb2ae
commit
330f3b1449
@ -128,7 +128,7 @@ func (c *Client) GetNodeInfo() (node *NodeInfo, err error) {
|
||||
SetHeader("If-None-Match", c.nodeEtag).
|
||||
Get(path)
|
||||
if err = c.checkResponse(r, path, err); err != nil {
|
||||
return
|
||||
return nil, err
|
||||
}
|
||||
if r.StatusCode() == 304 {
|
||||
return nil, nil
|
||||
@ -238,9 +238,7 @@ func (c *Client) GetNodeInfo() (node *NodeInfo, err error) {
|
||||
}
|
||||
case "dns":
|
||||
var domains []string
|
||||
for _, v := range matchs {
|
||||
domains = append(domains, v)
|
||||
}
|
||||
domains = append(domains, matchs...)
|
||||
if matchs[0] != "main" {
|
||||
node.RawDNS.DNSMap[strconv.Itoa(i)] = map[string]interface{}{
|
||||
"address": cm.Routes[i].ActionValue,
|
||||
@ -249,7 +247,6 @@ func (c *Client) GetNodeInfo() (node *NodeInfo, err error) {
|
||||
} else {
|
||||
dns := []byte(strings.Join(matchs[1:], ""))
|
||||
node.RawDNS.DNSJson = dns
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user