Added is on password handler SSH Strategy, and refactored the traceStrategy name

This commit is contained in:
Mario
2022-05-22 21:49:23 +02:00
parent e89f8446fe
commit 957d87c75d
2 changed files with 3 additions and 2 deletions

View File

@ -81,6 +81,7 @@ func (SSHStrategy *SecureShellStrategy) Init(beelzebubServiceConfiguration parse
Password: password,
Client: ctx.ClientVersion(),
RemoteAddr: ctx.RemoteAddr().String(),
ID: uuid.New().String(),
})
matched, err := regexp.MatchString(beelzebubServiceConfiguration.PasswordRegex, password)
if err != nil {