From 2f53e1c31f9ca25d742af6d34b6d818532a7cd7e Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Thu, 26 May 2022 14:21:56 -0500 Subject: [PATCH] fix: use correct devnull device on windows for proxy logs --- coderd/devtunnel/tunnel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coderd/devtunnel/tunnel.go b/coderd/devtunnel/tunnel.go index 319cb55043543..265cd317a947c 100644 --- a/coderd/devtunnel/tunnel.go +++ b/coderd/devtunnel/tunnel.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "net/url" + "os" "strconv" "strings" @@ -33,7 +34,7 @@ func New(ctx context.Context, coderurl *url.URL) (string, <-chan error, error) { cfg.ServerPort = 7000 // Ignore all logs from frp. - frplog.InitLog("file", "/dev/null", "error", 0, false) + frplog.InitLog("file", os.DevNull, "error", -1, false) var ( id = uuid.NewString()