TUN-6767: Build ICMP proxy for Windows only when CGO is enabled
This commit is contained in:
parent
8a53c1aa1d
commit
e454994e3e
|
@ -1,4 +1,4 @@
|
|||
//go:build !darwin && !linux && !windows
|
||||
//go:build !darwin && !linux && (!windows || !cgo)
|
||||
|
||||
package ingress
|
||||
|
||||
|
@ -14,7 +14,7 @@ import (
|
|||
"github.com/cloudflare/cloudflared/packet"
|
||||
)
|
||||
|
||||
var errICMPProxyNotImplemented = fmt.Errorf("ICMP proxy is not implemented on %s", runtime.GOOS)
|
||||
var errICMPProxyNotImplemented = fmt.Errorf("ICMP proxy is not implemented on %s %s", runtime.GOOS, runtime.GOARCH)
|
||||
|
||||
type icmpProxy struct{}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//go:build windows
|
||||
//go:build windows && cgo
|
||||
|
||||
package ingress
|
||||
|
||||
|
|
Loading…
Reference in New Issue