mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-12 06:18:16 +03:00
Add admin panel, manager, node_manager, bandwidth limiter, connection limiter, bonding, failover, vless encryption, mkcp transport
This commit is contained in:
@@ -213,3 +213,11 @@ func (h *Inbound) Close() error {
|
||||
common.PtrOrNil(h.service),
|
||||
)
|
||||
}
|
||||
|
||||
func (h *Inbound) UpdateUsers(users []option.Hysteria2User) {
|
||||
h.service.UpdateUsers(common.MapIndexed(users, func(index int, _ option.Hysteria2User) int {
|
||||
return index
|
||||
}), common.Map(users, func(it option.Hysteria2User) string {
|
||||
return it.Password
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user