From 2232bf46e5300b7df7aa45fa66d55fb5051ced0e Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Mon, 19 Jun 2023 08:34:59 +0800 Subject: [PATCH] fix hy server type --- core/hy/node.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/hy/node.go b/core/hy/node.go index f97aa97..5cdf889 100644 --- a/core/hy/node.go +++ b/core/hy/node.go @@ -6,7 +6,6 @@ import ( "github.com/Yuzuki616/V2bX/api/panel" "github.com/Yuzuki616/V2bX/conf" "github.com/Yuzuki616/V2bX/limiter" - "github.com/apernet/hysteria/core/cs" ) func (h *Hy) AddNode(tag string, info *panel.NodeInfo, c *conf.ControllerConfig) error { @@ -32,7 +31,7 @@ func (h *Hy) AddNode(tag string, info *panel.NodeInfo, c *conf.ControllerConfig) func (h *Hy) DelNode(tag string) error { if s, e := h.servers.Load(tag); e { - err := s.(*cs.Server).Close() + err := s.(*Server).Close() if err != nil { return err }