implemented simple ssh dual control

This commit is contained in:
ston1th 2025-01-23 00:15:25 +01:00
commit 60012be942
12 changed files with 446 additions and 20 deletions

View file

@ -264,7 +264,9 @@ func (c *Client) FollowRedirectLoop(r *http.Request, v any, delay time.Duration)
rdr, ok := err.(Redirect)
if err != nil && !ok {
if errors.Is(err, types.ErrISE) ||
errors.Is(err, types.ErrKeyNotFound) {
errors.Is(err, types.ErrKeyNotFound) ||
errors.Is(err, types.ErrAccessReqNotFound) ||
errors.Is(err, types.ErrAccessRequestRejected) {
return
}
if errors.Is(err, types.ErrReqNotFound) ||