mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
fix: sing内核删除用户逻辑不正确BUG
This commit is contained in:
@@ -29,7 +29,6 @@ type Sing struct {
|
||||
hookServer *HookServer
|
||||
router adapter.Router
|
||||
logFactory log.Factory
|
||||
inbounds map[string]adapter.Inbound
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user