fix: sing内核删除用户逻辑不正确BUG

This commit is contained in:
wyx2685
2025-01-05 20:57:18 +09:00
parent 29e0d7e56e
commit c755e9800b
6 changed files with 267 additions and 247 deletions

View File

@@ -29,7 +29,6 @@ type Sing struct {
hookServer *HookServer
router adapter.Router
logFactory log.Factory
inbounds map[string]adapter.Inbound
}
func init() {

View File

@@ -114,7 +114,7 @@ type UserDeleter interface {
func (b *Sing) DelUsers(users []panel.UserInfo, tag string) error {
var del UserDeleter
if i, ok := b.inbounds[tag]; ok {
if i, found := b.box.Inbound().Get(tag); found {
switch i.Type() {
case "vmess":
del = i.(*vmess.Inbound)