From d135f85f69e9f8d40853344a5773b104034d2f2d Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Thu, 26 May 2022 15:21:36 -0500 Subject: [PATCH] fix: use correct devnull device on windows for proxy logs (#1803) --- 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 319cb55043..265cd317a9 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()