Skip to content

Commit e454994

Browse files
committed
TUN-6767: Build ICMP proxy for Windows only when CGO is enabled
1 parent 8a53c1a commit e454994

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ingress/icmp_generic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !darwin && !linux && !windows
1+
//go:build !darwin && !linux && (!windows || !cgo)
22

33
package ingress
44

@@ -14,7 +14,7 @@ import (
1414
"github.com/cloudflare/cloudflared/packet"
1515
)
1616

17-
var errICMPProxyNotImplemented = fmt.Errorf("ICMP proxy is not implemented on %s", runtime.GOOS)
17+
var errICMPProxyNotImplemented = fmt.Errorf("ICMP proxy is not implemented on %s %s", runtime.GOOS, runtime.GOARCH)
1818

1919
type icmpProxy struct{}
2020

ingress/icmp_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build windows
1+
//go:build windows && cgo
22

33
package ingress
44

0 commit comments

Comments
 (0)