mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-09-30 11:41:19 +02:00
* chore(deps): update dependency golangci/golangci-lint to v2.7.2 * chore(linter): fix gocritic deprecation message issue Signed-off-by: Jan Larwig <jan@larwig.com> * chore(lint): fix var-naming: avoid package names that conflict with Go standard library package names (revive) Signed-off-by: Jan Larwig <jan@larwig.com> --------- Signed-off-by: Jan Larwig <jan@larwig.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jan Larwig <jan@larwig.com>
18 lines
375 B
Go
18 lines
375 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package proxyhttp
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
func (s *server) checkSystemdSocketSupport(opts Opts) error {
|
|
if strings.HasPrefix(strings.ToLower(opts.BindAddress), "fd:") {
|
|
listenAddr := opts.BindAddress[3:]
|
|
return fmt.Errorf("listen (file, %s) failed: systemd sockets are not supported on windows", listenAddr)
|
|
}
|
|
return nil
|
|
}
|