From e454994e3ed3b708580a00eea76f190598cff30e Mon Sep 17 00:00:00 2001 From: cthuang Date: Fri, 16 Sep 2022 10:14:05 +0100 Subject: [PATCH] TUN-6767: Build ICMP proxy for Windows only when CGO is enabled --- ingress/icmp_generic.go | 4 ++-- ingress/icmp_windows.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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