mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-11-30 04:11:03 +09:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27a78afd53 | ||
|
|
fe3a4a7ff1 |
No files matched your search
@@ -296,6 +296,10 @@ extension PacketTunnelProvider {
|
||||
}
|
||||
LibXraySetSockCallback(cb, ctx)
|
||||
|
||||
setenv("AMNEZIA_H2_STREAM_WINDOW", "131072", 1)
|
||||
setenv("AMNEZIA_H2_STREAM_WINDOW_MAX", "4194304", 1)
|
||||
setenv("AMNEZIA_H2_WINDOW_GROWTH_BUDGET", "2097152", 1)
|
||||
|
||||
LibXrayRunXray(nil,
|
||||
path,
|
||||
Int64.max)
|
||||
@@ -331,6 +335,8 @@ extension PacketTunnelProvider {
|
||||
udp: 'udp'
|
||||
misc:
|
||||
task-stack-size: 20480
|
||||
tcp-buffer-size: 16384
|
||||
max-session-count: 128
|
||||
connect-timeout: 5000
|
||||
read-write-timeout: 60000
|
||||
log-file: '\(hevSocksLogFile())'
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ class AmneziaVPN(ConanFile):
|
||||
self.requires("v2ray-rules-dat/202603162227")
|
||||
|
||||
if has_ne:
|
||||
self.requires("awg-apple/3.1.4")
|
||||
self.requires("awg-apple/3.1.6")
|
||||
self.requires("hev-socks5-tunnel/2.15.0", options={"as_framework": True})
|
||||
self.requires("openvpnadapter/1.0.0")
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from conan import ConanFile
|
||||
from conan.tools.layout import basic_layout
|
||||
from conan.tools.scm import Git
|
||||
from conan.tools.files import copy, collect_libs
|
||||
from conan.tools.files import copy, collect_libs, patch
|
||||
from conan.internal.model.pkg_type import PackageType
|
||||
from conan.tools.gnu import AutotoolsToolchain, Autotools
|
||||
from conan.tools.apple import is_apple_os
|
||||
@@ -16,6 +16,7 @@ required_conan_version = ">=2.26"
|
||||
class HevSocks5Tunnel(ConanFile):
|
||||
name = "hev-socks5-tunnel"
|
||||
version = "2.15.0"
|
||||
exports = "patches/*"
|
||||
settings = "os", "arch", "compiler"
|
||||
options = {
|
||||
"shared": [True, False],
|
||||
@@ -52,6 +53,7 @@ class HevSocks5Tunnel(ConanFile):
|
||||
tc.generate()
|
||||
|
||||
def build(self):
|
||||
patch(self, patch_file=os.path.join(self.recipe_folder, "patches", "0001-rotate-evicted-session-to-tail.patch"))
|
||||
autotools = Autotools(self)
|
||||
autotools.make("shared" if self.options.shared else "static")
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
From: NickVs2015 <nv@amnezia.org>
|
||||
Subject: [PATCH] rotate the evicted session to the tail so each insert evicts a live one
|
||||
|
||||
---
|
||||
--- a/src/hev-socks5-tunnel.c 2026-11-25 21:59:33.681519817 +0300
|
||||
+++ b/src/hev-socks5-tunnel.c 2026-11-25 21:59:33.716009460 +0300
|
||||
@@ -126,6 +126,8 @@
|
||||
node = hev_list_first (&session_set);
|
||||
sd = container_of (node, HevSocks5SessionData, node);
|
||||
hev_socks5_session_terminate (sd->self);
|
||||
+ hev_list_del (&session_set, node);
|
||||
+ hev_list_add_tail (&session_set, node);
|
||||
}
|
||||
|
||||
static void
|
||||
Reference in new issue
Block a user