mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-20 06:54:20 +00:00
Improve pod logs related to Supervisor TLS certificate problems
This commit is contained in:
@@ -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