mirror of
https://github.com/go-gost/gost.git
synced 2026-10-09 04:25:45 +00:00
add auther config
This commit is contained in:
@@ -36,6 +36,9 @@ func (r *serviceRegistry) IsRegistered(name string) bool {
|
||||
}
|
||||
|
||||
func (r *serviceRegistry) Get(name string) *service.Service {
|
||||
if name == "" {
|
||||
return nil
|
||||
}
|
||||
v, ok := r.m.Load(name)
|
||||
if !ok {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user