From f307c25d3eaf77bd7874081039cd59ed0b66d600 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 4 May 2020 13:30:58 -0400 Subject: [PATCH] set datadir path when giving filename for config --- llarp/context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llarp/context.cpp b/llarp/context.cpp index 43ec511a0..782c384e0 100644 --- a/llarp/context.cpp +++ b/llarp/context.cpp @@ -305,7 +305,8 @@ extern "C" llarp_config_load_file(const char* fname, struct llarp_config** conf, bool isRelay) { llarp_config* c = new llarp_config(); - if (c->impl.Load(fname, isRelay, {})) + const fs::path filepath(fname); + if (c->impl.Load(fname, isRelay, filepath.parent_path())) { *conf = c; return true;