mirror of
https://github.com/caddyserver/caddy.git
synced 2026-01-16 17:20:34 +00:00
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).
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build unix && !freebsd
|
||||
//go:build unix && !freebsd && !solaris
|
||||
|
||||
package caddy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user