TUN-6767: Build ICMP proxy for Windows only when CGO is enabled

This commit is contained in:
cthuang 2022-09-16 10:14:05 +01:00
parent 8a53c1aa1d
commit e454994e3e
2 changed files with 3 additions and 3 deletions

View File

@ -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{}

View File

@ -1,4 +1,4 @@
//go:build windows
//go:build windows && cgo
package ingress