From 58a3b4205f5715d1e7bd2147272f50a96d092960 Mon Sep 17 00:00:00 2001 From: ACoolName Date: Sat, 25 May 2024 16:53:55 +0300 Subject: [PATCH] added log --- auth/auth.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth/auth.go b/auth/auth.go index 8723a42..c981685 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "log" "net/http" "strings" "time" @@ -201,6 +202,8 @@ func (con Connection) verify(c *gin.Context) { } forwarded_host := c.Request.Header.Get("x-forwarded-host") + log.Printf("Checking auth of %s", forwarded_host) + domainSegments := strings.Split(forwarded_host, ".") serverId, service := domainSegments[0], domainSegments[1]