From 8e668f511b78935637ad5c0add54fe25d34a5273 Mon Sep 17 00:00:00 2001 From: kjake Date: Mon, 20 Jan 2025 13:59:15 -0500 Subject: [PATCH] Improve BSD coverage --- cmd/cloudflared/tunnel/cmd.go | 1 + diagnostic/network/collector_unix.go | 2 +- diagnostic/network/collector_unix_test.go | 2 +- ingress/icmp_posix.go | 2 +- ingress/icmp_posix_test.go | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/cloudflared/tunnel/cmd.go b/cmd/cloudflared/tunnel/cmd.go index a3b83413..5588ef3c 100644 --- a/cmd/cloudflared/tunnel/cmd.go +++ b/cmd/cloudflared/tunnel/cmd.go @@ -30,6 +30,7 @@ import ( "github.com/kjake/cloudflared/connection" "github.com/kjake/cloudflared/credentials" "github.com/kjake/cloudflared/diagnostic" + "github.com/kjake/cloudflared/diagnostic/network" "github.com/kjake/cloudflared/edgediscovery" "github.com/kjake/cloudflared/ingress" "github.com/kjake/cloudflared/logger" diff --git a/diagnostic/network/collector_unix.go b/diagnostic/network/collector_unix.go index 94bfaa15..ce792d6f 100644 --- a/diagnostic/network/collector_unix.go +++ b/diagnostic/network/collector_unix.go @@ -1,4 +1,4 @@ -//go:build darwin || linux || freebsd +//go:build darwin || linux || freebsd || openbsd || netbsd package diagnostic diff --git a/diagnostic/network/collector_unix_test.go b/diagnostic/network/collector_unix_test.go index b1b0a0c4..ddc7e7e2 100644 --- a/diagnostic/network/collector_unix_test.go +++ b/diagnostic/network/collector_unix_test.go @@ -1,4 +1,4 @@ -//go:build darwin || linux || freebsd +//go:build darwin || linux || freebsd || openbsd || netbsd package diagnostic_test diff --git a/ingress/icmp_posix.go b/ingress/icmp_posix.go index 97c10b7a..47fcf1fe 100644 --- a/ingress/icmp_posix.go +++ b/ingress/icmp_posix.go @@ -1,4 +1,4 @@ -//go:build darwin || linux || freebsd +//go:build darwin || linux || freebsd || openbsd || netbsd package ingress // This file extracts logic shared by Linux and Darwin implementation if ICMPProxy. diff --git a/ingress/icmp_posix_test.go b/ingress/icmp_posix_test.go index 608ea027..85b191af 100644 --- a/ingress/icmp_posix_test.go +++ b/ingress/icmp_posix_test.go @@ -1,4 +1,4 @@ -//go:build darwin || linux || freebsd +//go:build darwin || linux || freebsd || openbsd || netbsd package ingress