1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Merge PR #667: Cedar: fix compilation on FreeBSD, broken by #337

This commit is contained in:
Davide Beatrici 2018-08-23 08:55:26 +02:00 committed by GitHub
commit 0e5d432ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -9758,7 +9758,7 @@ bool CiReadSettingFromCfg(CLIENT *c, FOLDER *root)
UNIX_VLAN *uv; UNIX_VLAN *uv;
// Create a Tap for MacOS X // Create a Tap for MacOS X
if (UnixVLanCreate(CLIENT_MACOS_TAP_NAME, NULL) == false) if (UnixVLanCreate(CLIENT_MACOS_TAP_NAME, NULL, !c->Config.NicDownOnDisconnect) == false)
{ {
// Fail (abort) // Fail (abort)
CLog(c, "LC_TAP_NOT_FOUND"); CLog(c, "LC_TAP_NOT_FOUND");

View File

@ -672,11 +672,11 @@ void UnixCloseTapDevice(int fd)
{ {
} }
int UnixCreateTapDeviceEx(char *name, char *prefix, UCHAR *mac_address) int UnixCreateTapDeviceEx(char *name, char *prefix, UCHAR *mac_address, bool create_up)
{ {
return -1; return -1;
} }
int UnixCreateTapDevice(char *name, UCHAR *mac_address) int UnixCreateTapDevice(char *name, UCHAR *mac_address, bool create_up)
{ {
return -1; return -1;
} }