added log
This commit is contained in:
parent
b3482adc39
commit
58a3b4205f
@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@ -201,6 +202,8 @@ func (con Connection) verify(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
forwarded_host := c.Request.Header.Get("x-forwarded-host")
|
forwarded_host := c.Request.Header.Get("x-forwarded-host")
|
||||||
|
log.Printf("Checking auth of %s", forwarded_host)
|
||||||
|
|
||||||
domainSegments := strings.Split(forwarded_host, ".")
|
domainSegments := strings.Split(forwarded_host, ".")
|
||||||
|
|
||||||
serverId, service := domainSegments[0], domainSegments[1]
|
serverId, service := domainSegments[0], domainSegments[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user