This commit is contained in:
unknown
2019-10-15 17:12:27 +08:00
parent f4ae503982
commit 6771816be7
8 changed files with 153 additions and 86 deletions

View File

@@ -23,12 +23,12 @@ func (check *CheckAccess) GetConfigName() *core.NpsConfigs {
return c
}
func (check *CheckAccess) Run(ctx context.Context, config map[string]string) error {
func (check *CheckAccess) Run(ctx context.Context, config map[string]string) (context.Context, error) {
check.clientConn = check.GetClientConn(ctx)
check.configUsername = config["socks5_access_username"]
check.configPassword = config["socks5_access_password"]
return nil
return ctx, nil
}
func (check *CheckAccess) checkAuth(configUserName, configPassword string) error {