mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-05-19 22:23:30 +02:00
18 lines
370 B
Go
18 lines
370 B
Go
|
//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
|
||
|
}
|