mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-09-20 18:29:19 +03:00
Compare commits
17 Commits
5.02.5186
...
55464e79b1
Author | SHA1 | Date | |
---|---|---|---|
55464e79b1 | |||
015f93f7b7 | |||
cdd3bddcc6 | |||
0a1f0913d9 | |||
18cbd4627a | |||
e475d70c0b | |||
e94240d9a0 | |||
023eb3465d | |||
5d1ce1a2cd | |||
d8569ad31a | |||
e3e0c33e3b | |||
8f0deb576c | |||
27d233a522 | |||
128fefc63e | |||
3a25c6bf73 | |||
d6d0f2dadd | |||
68b72d8867 |
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
|||||||
build_and_test:
|
build_and_test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-14, macos-13, macos-12]
|
os: [macos-15, macos-14, macos-13]
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.15)
|
|||||||
set(BUILD_NUMBER CACHE STRING "The number of the current build.")
|
set(BUILD_NUMBER CACHE STRING "The number of the current build.")
|
||||||
|
|
||||||
if ("${BUILD_NUMBER}" STREQUAL "")
|
if ("${BUILD_NUMBER}" STREQUAL "")
|
||||||
set(BUILD_NUMBER "5186")
|
set(BUILD_NUMBER "5187")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_NUMBER LESS 5180)
|
if (BUILD_NUMBER LESS 5180)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"environments": [ { "BuildNumber": "5186" } ],
|
"environments": [ { "BuildNumber": "5187" } ],
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "x64-native",
|
"name": "x64-native",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
@ -33,6 +33,7 @@ You need to install the following software to build SoftEther VPN for UNIX.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo yum -y groupinstall "Development Tools"
|
sudo yum -y groupinstall "Development Tools"
|
||||||
|
sudo yum -y install epel-release
|
||||||
sudo yum -y install cmake ncurses-devel openssl-devel libsodium-devel readline-devel zlib-devel
|
sudo yum -y install cmake ncurses-devel openssl-devel libsodium-devel readline-devel zlib-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -2138,9 +2138,9 @@ void L2TPProcessInterrupts(L2TP_SERVER *l2tp)
|
|||||||
UINT64 l2tpTimeout = L2TP_TUNNEL_TIMEOUT;
|
UINT64 l2tpTimeout = L2TP_TUNNEL_TIMEOUT;
|
||||||
|
|
||||||
// If we got on ANY session a higher timeout than the default L2TP tunnel timeout, increase it
|
// If we got on ANY session a higher timeout than the default L2TP tunnel timeout, increase it
|
||||||
for (i = 0; i < LIST_NUM(t->SessionList); i++)
|
for (j = 0; j < LIST_NUM(t->SessionList); j++)
|
||||||
{
|
{
|
||||||
L2TP_SESSION* s = LIST_DATA(t->SessionList, i);
|
L2TP_SESSION* s = LIST_DATA(t->SessionList, j);
|
||||||
|
|
||||||
if (s->TubeRecv != NULL && s->TubeRecv->DataTimeout > l2tpTimeout)
|
if (s->TubeRecv != NULL && s->TubeRecv->DataTimeout > l2tpTimeout)
|
||||||
{
|
{
|
||||||
|
@ -4259,7 +4259,7 @@ UINT MsService(char *name, SERVICE_FUNCTION *start, SERVICE_FUNCTION *stop, UINT
|
|||||||
|
|
||||||
if ((mode == SVC_MODE_INSTALL || mode == SVC_MODE_UNINSTALL || mode == SVC_MODE_START ||
|
if ((mode == SVC_MODE_INSTALL || mode == SVC_MODE_UNINSTALL || mode == SVC_MODE_START ||
|
||||||
mode == SVC_MODE_STOP || mode == SVC_MODE_SERVICE) &&
|
mode == SVC_MODE_STOP || mode == SVC_MODE_SERVICE) &&
|
||||||
(ms->IsNt == false))
|
(IsNt() == false))
|
||||||
{
|
{
|
||||||
// Tried to use the command for the NT in non-WindowsNT system
|
// Tried to use the command for the NT in non-WindowsNT system
|
||||||
MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY"));
|
MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY"));
|
||||||
|
@ -170,7 +170,6 @@ typedef struct MS
|
|||||||
{
|
{
|
||||||
HINSTANCE hInst;
|
HINSTANCE hInst;
|
||||||
HINSTANCE hKernel32;
|
HINSTANCE hKernel32;
|
||||||
bool IsNt;
|
|
||||||
bool IsAdmin;
|
bool IsAdmin;
|
||||||
HANDLE hCurrentProcess;
|
HANDLE hCurrentProcess;
|
||||||
UINT CurrentProcessId;
|
UINT CurrentProcessId;
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
// VPN Command Line Management Utility
|
// VPN Command Line Management Utility
|
||||||
|
|
||||||
#include "Cedar/Cedar.h"
|
#include "Cedar/Cedar.h"
|
||||||
|
#ifdef OS_WIN32
|
||||||
|
#include "Cedar/CMInner.h"
|
||||||
|
#endif
|
||||||
#include "Cedar/Command.h"
|
#include "Cedar/Command.h"
|
||||||
|
|
||||||
#include "Mayaqua/Internat.h"
|
#include "Mayaqua/Internat.h"
|
||||||
@ -39,6 +41,10 @@ int main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
InitCedar();
|
InitCedar();
|
||||||
|
|
||||||
|
#ifdef OS_WIN32
|
||||||
|
CmExecUiHelperMain();
|
||||||
|
#endif
|
||||||
|
|
||||||
s = GetCommandLineUniStr();
|
s = GetCommandLineUniStr();
|
||||||
|
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
@ -4,11 +4,8 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnbridge/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnbridge/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
EnvironmentFile=-@DIR@/softether/vpnbridge
|
ExecStart=@DIR@/softether/vpnbridge/vpnbridge execsvc
|
||||||
ExecStart=@DIR@/softether/vpnbridge/vpnbridge start
|
|
||||||
ExecStop=@DIR@/softether/vpnbridge/vpnbridge stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
@ -4,11 +4,8 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnclient/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnclient/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
EnvironmentFile=-@DIR@/softether/vpnclient
|
ExecStart=@DIR@/softether/vpnclient/vpnclient execsvc
|
||||||
ExecStart=@DIR@/softether/vpnclient/vpnclient start
|
|
||||||
ExecStop=@DIR@/softether/vpnclient/vpnclient stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
@ -4,12 +4,9 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnserver/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnserver/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
EnvironmentFile=-@DIR@/softether/vpnserver
|
ExecStart=@DIR@/softether/vpnserver/vpnserver execsvc
|
||||||
ExecStart=@DIR@/softether/vpnserver/vpnserver start
|
|
||||||
ExecStop=@DIR@/softether/vpnserver/vpnserver stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
Reference in New Issue
Block a user