mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
cli: fixed expected behavior of --write-url, -Z
cli -Z <file> is used by automated test scripts to write the SSO URL to a file rather than launch a browser with the URL. Recently this behavior changed on Linux where -Z now both writes the URL to a file and also launches a browser with the URL. This patch reverts behavior back to only writing the file. Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
parent
41f6eaf11d
commit
7a829ede11
@ -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]()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user