mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +03:00
Cedar: remove "NicDownOnDisconnect" option
SoftEther VPN originally created the NIC in the UP state and never changed it, even when the the client was not connected.
The behavior was changed in 59e1483dbf, which also added the NicDownOnDisconnect option
The option was disabled by default for backwards compatibility with scripts that don't check whether the NIC is down, but it's not ideal.
This commit forces the correct behavior and removes the commands "TUNDownOnDisconnectEnable", "TUNDownOnDisconnectDisable" and "TUNDownOnDisconnectGet".
This commit is contained in:
1 parent
47d08b055e
commit
235bd07e67
15 files changed
+16
-289
No files matched your search
@@ -5008,15 +5008,9 @@ REDIRECTED:
|
||||
}
|
||||
|
||||
PrintStatus(sess, _UU("STATUS_9"));
|
||||
|
||||
#ifdef OS_UNIX
|
||||
// Set TUN up if session has NicDownOnDisconnect set
|
||||
if (c->Session->NicDownOnDisconnect != NULL)
|
||||
{
|
||||
UnixVLanSetState(c->Session->ClientOption->DeviceName, true);
|
||||
}
|
||||
UnixVLanSetState(c->Session->ClientOption->DeviceName, true);
|
||||
#endif
|
||||
|
||||
// Shift the connection to the tunneling mode
|
||||
StartTunnelingMode(c);
|
||||
s = NULL;
|
||||
|
||||
Reference in new issue
Block a user