mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-02 17:27:32 +03:00
Add admin panel, manager, node_manager, bandwidth limiter, connection limiter, bonding, failover, vless encryption, mkcp transport
This commit is contained in:
@@ -170,3 +170,13 @@ func (h *Inbound) Close() error {
|
||||
common.PtrOrNil(h.server),
|
||||
)
|
||||
}
|
||||
|
||||
func (h *Inbound) UpdateUsers(users []option.TUICUser) {
|
||||
h.server.UpdateUsers(common.MapIndexed(users, func(index int, _ option.TUICUser) int {
|
||||
return index
|
||||
}), common.Map(users, func(it option.TUICUser) [16]byte {
|
||||
return [16]byte(uuid.Must(uuid.FromString(it.UUID)).Bytes())
|
||||
}), common.Map(users, func(it option.TUICUser) string {
|
||||
return it.Password
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user