summaryrefslogtreecommitdiff
path: root/internal/oauth
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:42:56 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:42:56 +0100
commit9fba9d6ef01490935ab181f5ea4abd9f0d490388 (patch)
tree97249835637719a5d4c722ac28d50ae746a76300 /internal/oauth
parentbb760ad9036b586fd4f07b96623e8421e1dccaf0 (diff)
OAuth Listener: Explicitly specify localhost
Diffstat (limited to 'internal/oauth')
-rw-r--r--internal/oauth/oauth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/oauth/oauth.go b/internal/oauth/oauth.go
index 9233448..f88e7e9 100644
--- a/internal/oauth/oauth.go
+++ b/internal/oauth/oauth.go
@@ -168,7 +168,7 @@ func (oauth *OAuth) setupListener() error {
oauth.session.Context = context.Background()
// create a listener
- listener, listenerErr := net.Listen("tcp", ":0")
+ listener, listenerErr := net.Listen("tcp", "127.0.0.1:0")
if listenerErr != nil {
return types.NewWrappedError(errorMessage, listenerErr)
}