From 76611fa15079b755ddf3c859ae2ea0ad2123223f Mon Sep 17 00:00:00 2001 From: Aaron Brady Date: Sat, 6 Jan 2024 05:09:20 -0500 Subject: [PATCH] Switch Solaris-derivatives away from listen_unix (#6021) Solaris 10 and Illumos are missing SO_REUSEPORT. Treat them more like Windows (i.e. use the listener pool). --- listen.go | 2 +- listen_unix.go | 2 +- listen_unix_setopt.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/listen.go b/listen.go index 0cd3fabb7..34812b54f 100644 --- a/listen.go +++ b/listen.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build !unix +//go:build !unix || solaris package caddy diff --git a/listen_unix.go b/listen_unix.go index 34cd76c5c..9ec65c399 100644 --- a/listen_unix.go +++ b/listen_unix.go @@ -15,7 +15,7 @@ // Even though the filename ends in _unix.go, we still have to specify the // build constraint here, because the filename convention only works for // literal GOOS values, and "unix" is a shortcut unique to build tags. -//go:build unix +//go:build unix && !solaris package caddy diff --git a/listen_unix_setopt.go b/listen_unix_setopt.go index c9675f928..13ee7b830 100644 --- a/listen_unix_setopt.go +++ b/listen_unix_setopt.go @@ -1,4 +1,4 @@ -//go:build unix && !freebsd +//go:build unix && !freebsd && !solaris package caddy