mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-24 07:56:24 +08: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:
parent
8a50f191bf
commit
76611fa150
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user