mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
mingw: change arguments order in lambda
Having capture without initializer after nested struct is broken in GCC 7.x and is fixed starting from GCC 8.1 (see https://stackoverflow.com/questions/60110629/). Signed-off-by: Lev Stipakov <lev@openvpn.net>
This commit is contained in:
parent
9393206d74
commit
e844bd466b
@ -857,7 +857,7 @@ namespace openvpn {
|
||||
// We must do DHCP release/renew in a background thread
|
||||
// so the foreground can forward the DHCP negotiation packets
|
||||
// over the tunnel.
|
||||
l2_thread.reset(new std::thread([this, logwrap=Log::Context::Wrapper(), tap]() {
|
||||
l2_thread.reset(new std::thread([this, tap, logwrap=Log::Context::Wrapper()]() {
|
||||
Log::Context logctx(logwrap);
|
||||
::Sleep(250);
|
||||
const Util::InterfaceInfoList ii;
|
||||
|
Loading…
Reference in New Issue
Block a user