diff --git a/go.mod b/go.mod index 9d9983e..678bdba 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.0 toolchain go1.23.1 require ( - github.com/InazumaV/Ratte-Interface v0.0.0-20250218004206-5947494fa692 + github.com/InazumaV/Ratte-Interface v0.0.0-20250218011150-2b79ae58515b github.com/fsnotify/fsnotify v1.7.0 github.com/go-acme/lego/v4 v4.18.0 github.com/goccy/go-json v0.10.3 diff --git a/go.sum b/go.sum index 5fc9fce..2530e20 100644 --- a/go.sum +++ b/go.sum @@ -65,6 +65,8 @@ github.com/InazumaV/Ratte-Interface v0.0.0-20241209172154-eb1d9356093c h1:Cv3vuJ github.com/InazumaV/Ratte-Interface v0.0.0-20241209172154-eb1d9356093c/go.mod h1:UxqxslbpT8Q4qMldSNI6VCX5WFXWDbvE4fXpymp73kA= github.com/InazumaV/Ratte-Interface v0.0.0-20250218004206-5947494fa692 h1:CZ5+CmQeE3SkCi6yXGqvmip+Tqw6ZHv9ThjlBk2iUns= github.com/InazumaV/Ratte-Interface v0.0.0-20250218004206-5947494fa692/go.mod h1:UxqxslbpT8Q4qMldSNI6VCX5WFXWDbvE4fXpymp73kA= +github.com/InazumaV/Ratte-Interface v0.0.0-20250218011150-2b79ae58515b h1:OKjc2fZbgTlCmvnHbX8Do4WJLYzmCYxyUVFrE2HQhxw= +github.com/InazumaV/Ratte-Interface v0.0.0-20250218011150-2b79ae58515b/go.mod h1:UxqxslbpT8Q4qMldSNI6VCX5WFXWDbvE4fXpymp73kA= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/OpenDNS/vegadns2client v0.0.0-20180418235048-a3fa4a771d87 h1:xPMsUicZ3iosVPSIP7bW5EcGUzjiiMl1OYTe14y/R24= github.com/OpenDNS/vegadns2client v0.0.0-20180418235048-a3fa4a771d87/go.mod h1:iGLljf5n9GjT6kc0HBvyI1nOKnGQbNB66VzSNbK5iks= diff --git a/handler/node.go b/handler/node.go index 1b8e89e..9aadbd3 100644 --- a/handler/node.go +++ b/handler/node.go @@ -45,7 +45,7 @@ func (h *Handler) PullNodeHandle(n *panel.NodeInfo) error { ni := (*core.NodeInfo)(n) ni.OtherOptions = maps.Merge[string, any](ni.OtherOptions, h.Options.Expand) ni.Limit.IPLimit = number.SelectBigger(ni.Limit.IPLimit, h.Limit.IPLimit) - ni.Limit.SpeedLimit = number.SelectBigger(ni.Limit.SpeedLimit, int(h.Limit.SpeedLimit)) + ni.Limit.SpeedLimit = number.SelectBigger(ni.Limit.SpeedLimit, uint64(h.Limit.SpeedLimit)) err = h.c.AddNode(&core.AddNodeParams{ NodeInfo: ni, TlsOptions: core.TlsOptions{