We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98f5bb4 commit 6a5df44Copy full SHA for 6a5df44
pkg/auth/auth.go
@@ -165,6 +165,9 @@ func IsTenancy(host string) bool {
165
return strings.HasSuffix(normalizedHost, "."+tenancyHost)
166
}
167
168
+// NormalizeHostname ensures the host matches the values used throughout
169
+// the rest of the codebase with respect to hostnames. These are github,
170
+// localhost, and tenancyHost.
171
func NormalizeHostname(host string) string {
172
hostname := strings.ToLower(host)
173
if strings.HasSuffix(hostname, "."+github) {
0 commit comments