Fix Windows build after merge of released

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
This commit is contained in:
Frank Lichtenheld
2022-03-11 16:51:50 +01:00
parent 92751e23aa
commit 14295c94de
2 changed files with 3 additions and 2 deletions

View File

@@ -363,7 +363,8 @@ private:
did_query_remote = false;
}
const ClientAPI::EvalConfig eval = Client::eval_config_static(*config);
ClientAPI::OpenVPNClientHelper clihelper;
const ClientAPI::EvalConfig eval = clihelper.eval_config(*config);
if (eval.error)
OPENVPN_THROW_EXCEPTION("eval config error: " << eval.message);

View File

@@ -639,7 +639,7 @@ static void start_thread(Client& client)
{
// Set Windows title bar
const std::string title_text = "F2:Stats F3:Reconnect F4:Stop F5:Pause";
Win::Console::Title title(ClientAPI::OpenVPNClient::platform() + " " + title_text);
Win::Console::Title title(ClientAPI::OpenVPNClientHelper::platform() + " " + title_text);
Win::Console::Input console;
// start connect thread