diff --git a/llarp/context.cpp b/llarp/context.cpp index 104739df7..88746db22 100644 --- a/llarp/context.cpp +++ b/llarp/context.cpp @@ -244,6 +244,17 @@ struct llarp_config } }; +namespace llarp +{ + llarp_config* + Config::Copy() const + { + llarp_config* ptr = new llarp_config(); + ptr->impl = *this; + return ptr; + } +} // namespace llarp + extern "C" { size_t