From 24b50190c2009e354c781939f5d2609a5a3fd2ce Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Mon, 22 Jul 2024 11:00:58 +0200 Subject: [PATCH] ext.auth: return `nil` instead of `OkConnect` This allows falling through to a next `ConnectHandler` is authentication succeeds making if easier to combine with other `ConnectHandler`s. --- ext/auth/basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/auth/basic.go b/ext/auth/basic.go index a433f2d0..42d555b0 100644 --- a/ext/auth/basic.go +++ b/ext/auth/basic.go @@ -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 }) }