1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-05-19 22:23:30 +02:00
oauth2-proxy/pkg/http/systemd_unsupported.go

18 lines
370 B
Go
Raw Normal View History

//go:build windows
// +build windows
package http
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
}