Files
oauth2-proxy/pkg/proxyhttp/systemd_unsupported.go
T
renovate[bot]andJan Larwig 854a74793b chore(deps): update dependency golangci/golangci-lint to v2.7.2 (#3254)
* 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>
2026-01-04 10:23:26 +01:00

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
}