优化通道资源取用逻辑

This commit is contained in:
2025-12-05 16:52:40 +08:00
parent 2d053ddf49
commit 3f24fba1ae
4 changed files with 96 additions and 35 deletions

View File

@@ -38,7 +38,7 @@ func (s *proxyService) RegisterBaiyin(Mac string, IP netip.Addr, username, passw
for i := range 10000 {
chans[i] = netip.AddrPortFrom(IP, uint16(i+10000))
}
err := registerChans(chans)
err := addChans(chans)
if err != nil {
return core.NewServErr("添加通道失败")
}