mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-05 04:56:11 +00:00
Improve pod logs related to Supervisor TLS certificate problems
This commit is contained in:
14
internal/httputil/requestutil/requestutil.go
Normal file
14
internal/httputil/requestutil/requestutil.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2023 the Pinniped contributors. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package requestutil
|
||||
|
||||
import "net/http"
|
||||
|
||||
func SNIServerName(req *http.Request) string {
|
||||
name := ""
|
||||
if req.TLS != nil {
|
||||
name = req.TLS.ServerName
|
||||
}
|
||||
return name
|
||||
}
|
||||
Reference in New Issue
Block a user