mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 19:29:57 +00:00
TUN-6767: Build ICMP proxy for Windows only when CGO is enabled
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
//go:build !darwin && !linux && !windows
|
//go:build !darwin && !linux && (!windows || !cgo)
|
||||||
|
|
||||||
package ingress
|
package ingress
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ import (
|
|||||||
"github.com/cloudflare/cloudflared/packet"
|
"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{}
|
type icmpProxy struct{}
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
//go:build windows
|
//go:build windows && cgo
|
||||||
|
|
||||||
package ingress
|
package ingress
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user