add conn clear for sing

This commit is contained in:
Yuzuki616
2023-10-13 15:32:06 +08:00
parent 0cdb02f2f9
commit 36bb5bd205
5 changed files with 103 additions and 25 deletions

View File

@@ -112,6 +112,7 @@ func (b *Box) DelUsers(users []panel.UserInfo, tag string) error {
}
uuids := make([]string, len(users))
for i := range users {
b.hookServer.ClearConn(tag, users[i].Uuid)
uuids[i] = users[i].Uuid
}
err := del.DelUsers(uuids)