increase timeout after connection for getting info about routes
This commit is contained in:
parent
3dd207a3a1
commit
5245fe103c
3 changed files with 3 additions and 3 deletions
|
|
@ -170,7 +170,7 @@ void Ikev2Protocol::newConnectionStateEventReceived(UINT unMsg, tagRASCONNSTATE
|
||||||
//SetEvent(gEvent_handle);
|
//SetEvent(gEvent_handle);
|
||||||
{
|
{
|
||||||
//get the network settings of adapters
|
//get the network settings of adapters
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(3));
|
std::this_thread::sleep_for(std::chrono::seconds(4));
|
||||||
std::string p1,p2,p3;
|
std::string p1,p2,p3;
|
||||||
const auto ret = adpInfo.get_adapter_info(tunnelName().toStdString());
|
const auto ret = adpInfo.get_adapter_info(tunnelName().toStdString());
|
||||||
if (std::get<0>(ret) == false){
|
if (std::get<0>(ret) == false){
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ void OpenVpnProtocol::onReadyReadDataFromManagementServer()
|
||||||
stopTimeoutTimer();
|
stopTimeoutTimer();
|
||||||
setConnectionState(VpnProtocol::Connected);
|
setConnectionState(VpnProtocol::Connected);
|
||||||
{
|
{
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(3));
|
std::this_thread::sleep_for(std::chrono::seconds(4));
|
||||||
std::string p1,p2,p3;
|
std::string p1,p2,p3;
|
||||||
const auto &ret = adpInfo.get_adapter_info("TAP-Windows Adapter V9");
|
const auto &ret = adpInfo.get_adapter_info("TAP-Windows Adapter V9");
|
||||||
if (std::get<0>(ret) == false){
|
if (std::get<0>(ret) == false){
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,7 @@ ErrorCode WireguardProtocol::start()
|
||||||
setConnectionState(ConnectionState::Connected);
|
setConnectionState(ConnectionState::Connected);
|
||||||
{
|
{
|
||||||
//TODO:FIXME: without some ugly sleep we have't get a adapter parametrs
|
//TODO:FIXME: without some ugly sleep we have't get a adapter parametrs
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(3));
|
std::this_thread::sleep_for(std::chrono::seconds(4));
|
||||||
std::string p1{},p2{};//,p3;
|
std::string p1{},p2{};//,p3;
|
||||||
const auto &ret = adpInfo.get_adapter_info("WireGuard Tunnel");//serviceName().toStdString());//("AmneziaVPN IKEv2");
|
const auto &ret = adpInfo.get_adapter_info("WireGuard Tunnel");//serviceName().toStdString());//("AmneziaVPN IKEv2");
|
||||||
if (std::get<0>(ret) == false){
|
if (std::get<0>(ret) == false){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue