aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-08-08 17:16:30 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-08-08 17:16:30 +0200
commit301773302e5e97544be69965b9fae573791f1460 (patch)
treeead73dc871aa49f074d48f01a03786fdd47df5fc /conf
parentdriver: account for timestamp callback but do nothing (diff)
downloadwireguard-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.go8
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