From b70b012bc692477fdf51b09627c6a7333265ee31 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 29 Aug 2019 16:16:48 -0600 Subject: version: hard code name and version at compile time We really do want the true name and version in logs so that external consumers have a good reference point for helping us debug. We can then do the log file directory explicitly. Signed-off-by: Jason A. Donenfeld --- ringlogger/dump.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ringlogger/dump.go') diff --git a/ringlogger/dump.go b/ringlogger/dump.go index 53e67eeb..05a9b27f 100644 --- a/ringlogger/dump.go +++ b/ringlogger/dump.go @@ -12,8 +12,8 @@ import ( "golang.org/x/sys/windows" "golang.org/x/sys/windows/registry" + "golang.zx2c4.com/wireguard/windows/conf" - "golang.zx2c4.com/wireguard/windows/version" ) func DumpTo(out io.Writer, localSystem bool) error { @@ -39,8 +39,7 @@ func DumpTo(out io.Writer, localSystem bool) error { if err != nil { return err } - name, _ := version.RunningNameVersion() - path = filepath.Join(systemprofile, "AppData", "Local", name, "log.bin") + path = filepath.Join(systemprofile, "AppData", "Local", "WireGuard", "log.bin") } file, err := os.Open(path) if err != nil { -- cgit v1.2.3-59-g8ed1b