From 55e8a651038746417b7db78e4e047d5e73cb4459 Mon Sep 17 00:00:00 2001 From: absolutelightning Date: Tue, 4 Jul 2023 23:50:56 +0530 Subject: [PATCH] fix variable undefined --- command/connect/envoy/admin_access_log_path_unix.go | 6 ------ command/connect/envoy/admin_access_log_path_windows.go | 6 ------ command/connect/envoy/envoy.go | 2 ++ 3 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 command/connect/envoy/admin_access_log_path_unix.go delete mode 100644 command/connect/envoy/admin_access_log_path_windows.go diff --git a/command/connect/envoy/admin_access_log_path_unix.go b/command/connect/envoy/admin_access_log_path_unix.go deleted file mode 100644 index aedaa15668..0000000000 --- a/command/connect/envoy/admin_access_log_path_unix.go +++ /dev/null @@ -1,6 +0,0 @@ -//go:build linux || darwin -// +build linux darwin - -package envoy - -const DefaultAdminAccessLogPath = "/dev/null" diff --git a/command/connect/envoy/admin_access_log_path_windows.go b/command/connect/envoy/admin_access_log_path_windows.go deleted file mode 100644 index d5e7832476..0000000000 --- a/command/connect/envoy/admin_access_log_path_windows.go +++ /dev/null @@ -1,6 +0,0 @@ -//go:build windows -// +build windows - -package envoy - -const DefaultAdminAccessLogPath = "nul" diff --git a/command/connect/envoy/envoy.go b/command/connect/envoy/envoy.go index bb8104040d..7399e2eb6b 100644 --- a/command/connect/envoy/envoy.go +++ b/command/connect/envoy/envoy.go @@ -38,6 +38,8 @@ func New(ui cli.Ui) *cmd { return c } +const DefaultAdminAccessLogPath = os.DevNull + type cmd struct { UI cli.Ui flags *flag.FlagSet