mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 00:04:57 +03:00
Add TAP devices support for FreeBSD and OpenBSD
Thanks to @kennylam777 for the first implementation: https://github.com/kennylam777/SoftEtherVPN/commits/FreeBSD-TAP
This commit is contained in:
@ -1616,8 +1616,9 @@ void GetServerCapsMain(SERVER *s, CAPSLIST *t)
|
||||
|
||||
if (IsBridgeSupported())
|
||||
{
|
||||
// Tun / tap device is available (only Linux)
|
||||
AddCapsBool(t, "b_tap_supported", GetOsInfo()->OsType == OSTYPE_LINUX ? true : false);
|
||||
// TUN / TAP device availability (Linux and BSD)
|
||||
const UINT OsType = GetOsInfo()->OsType;
|
||||
AddCapsBool(t, "b_tap_supported", OsType == OSTYPE_LINUX || OsType == OSTYPE_BSD);
|
||||
}
|
||||
|
||||
// Cascade connection
|
||||
|
Reference in New Issue
Block a user