Skip to content

Commit

Permalink
ext.auth: return nil instead of OkConnect
Browse files Browse the repository at this point in the history
This allows falling through to a next `ConnectHandler` is authentication succeeds making if easier to combine with other `ConnectHandler`s.
  • Loading branch information
aibaars authored and elazarl committed Jul 25, 2024
1 parent 5ecc178 commit 24b5019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/auth/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func BasicConnect(realm string, f func(user, passwd string) bool) goproxy.HttpsH
ctx.Resp = BasicUnauthorized(ctx.Req, realm)
return goproxy.RejectConnect, host
}
return goproxy.OkConnect, host
return nil, host
})
}

Expand Down

0 comments on commit 24b5019

Please sign in to comment.