diff --git a/ingress/icmp_generic.go b/ingress/icmp_generic.go index 0e481006..c685a2f4 100644 --- a/ingress/icmp_generic.go +++ b/ingress/icmp_generic.go @@ -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{} diff --git a/ingress/icmp_windows.go b/ingress/icmp_windows.go index baba8d4d..4170d5fc 100644 --- a/ingress/icmp_windows.go +++ b/ingress/icmp_windows.go @@ -1,4 +1,4 @@ -//go:build windows +//go:build windows && cgo package ingress