RemoveUser 从运行中的 Xray inbound 热删用户。
(ctx context.Context, inboundTag, email string)
| 867 | |
| 868 | // RemoveUser 从运行中的 Xray inbound 热删用户。 |
| 869 | func (m *Manager) RemoveUser(ctx context.Context, inboundTag, email string) error { |
| 870 | m.mu.Lock() |
| 871 | instance := m.instance |
| 872 | m.mu.Unlock() |
| 873 | if instance == nil { |
| 874 | return ErrNotRunning |
| 875 | } |
| 876 | |
| 877 | return xrayRemoveUser(ctx, instance, inboundTag, email) |
| 878 | } |
| 879 | |
| 880 | // buildAccount 根据协议类型将 UserConfig 转成 protocol.Account。 |
| 881 | func buildAccount(cfg coremanager.UserConfig) (protocol.Account, error) { |
nothing calls this directly
no test coverage detected