diff --git a/test/ovpncli/cli.cpp b/test/ovpncli/cli.cpp index 892d6f30..4f9dff7d 100644 --- a/test/ovpncli/cli.cpp +++ b/test/ovpncli/cli.cpp @@ -330,8 +330,10 @@ private: || string::starts_with(url_str, "https://")) { if (!write_url_fn.empty()) - write_string(write_url_fn, url_str + '\n'); - + { + write_string(write_url_fn, url_str + '\n'); + return; + } #ifdef OPENVPN_PLATFORM_MAC std::thread thr([url_str]() {