mirror of
https://github.com/ZeroDream-CN/SakuraFrp
synced 2024-11-21 15:00:45 +00:00
Update service.go
This commit is contained in:
parent
c1ca14230b
commit
e85550c054
@ -478,7 +478,7 @@ func generateTLSConfig() *tls.Config {
|
||||
}
|
||||
|
||||
func (svr *Service) CloseUser(user string) error {
|
||||
ctl, ok := svr.ctlManager.GetById(user)
|
||||
ctl, ok := svr.ctlManager.SearchById(user)
|
||||
if !ok {
|
||||
return fmt.Errorf("user not login")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user