diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-08 17:16:30 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-08 17:16:30 +0200 |
commit | 301773302e5e97544be69965b9fae573791f1460 (patch) | |
tree | ead73dc871aa49f074d48f01a03786fdd47df5fc /conf | |
parent | driver: account for timestamp callback but do nothing (diff) | |
download | wireguard-windows-301773302e5e97544be69965b9fae573791f1460.tar.xz wireguard-windows-301773302e5e97544be69965b9fae573791f1460.zip |
driver: break encapsulation and pass timestamp to ringlogger
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/path_windows.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/conf/path_windows.go b/conf/path_windows.go index e9ff783a..e63e4774 100644 --- a/conf/path_windows.go +++ b/conf/path_windows.go @@ -126,3 +126,11 @@ func RootDirectory(create bool) (string, error) { cachedRootDir = data return cachedRootDir, nil } + +func LogFile(createRoot bool) (string, error) { + root, err := RootDirectory(createRoot) + if err != nil { + return "", err + } + return filepath.Join(root, "log.bin"), nil +}
\ No newline at end of file |