mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-11-30 04:11:03 +09:00
Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27a78afd53 | ||
|
|
fe3a4a7ff1 | ||
|
|
c71e65d9cd | ||
|
|
5aff2ce580 | ||
|
|
41a6757042 | ||
|
|
f0b12257ab | ||
|
|
762f61cea3 |
No files matched your search
@@ -1695,13 +1695,21 @@ jobs:
|
||||
# ------------------------------------------------------
|
||||
|
||||
Pre-Release:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
if: ${{ always() && startsWith(github.ref, 'refs/tags/') }}
|
||||
needs: [Build-Linux-Ubuntu, Build-Windows, Build-iOS, Build-MacOS, Build-MacOS-NE, Build-Android]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: 'Check builds'
|
||||
working-directory: .
|
||||
env:
|
||||
NEEDS: ${{ toJSON(needs) }}
|
||||
run: |
|
||||
jq -c 'map_values(.result)' <<< "$NEEDS"
|
||||
jq -e 'all(.[]; .result == "success" or .result == "skipped")' <<< "$NEEDS"
|
||||
|
||||
- name: 'Get release notes template'
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -1742,7 +1750,7 @@ jobs:
|
||||
# ------------------------------------------------------
|
||||
|
||||
TestFlight:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
if: ${{ always() && startsWith(github.ref, 'refs/tags/') }}
|
||||
needs: [Build-Linux-Ubuntu, Build-Windows, Build-iOS, Build-MacOS, Build-MacOS-NE, Build-Android]
|
||||
runs-on: macos-26
|
||||
|
||||
@@ -1757,6 +1765,14 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: 'Check builds'
|
||||
working-directory: .
|
||||
env:
|
||||
NEEDS: ${{ toJSON(needs) }}
|
||||
run: |
|
||||
jq -c 'map_values(.result)' <<< "$NEEDS"
|
||||
jq -e 'all(.[]; .result == "success" or .result == "skipped")' <<< "$NEEDS"
|
||||
|
||||
- name: 'Get fastlane config'
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -1786,7 +1802,7 @@ jobs:
|
||||
# ------------------------------------------------------
|
||||
|
||||
Google-Play:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
if: ${{ always() && startsWith(github.ref, 'refs/tags/') }}
|
||||
needs: [Build-Linux-Ubuntu, Build-Windows, Build-iOS, Build-MacOS, Build-MacOS-NE, Build-Android]
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
@@ -1796,6 +1812,14 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: 'Check builds'
|
||||
working-directory: .
|
||||
env:
|
||||
NEEDS: ${{ toJSON(needs) }}
|
||||
run: |
|
||||
jq -c 'map_values(.result)' <<< "$NEEDS"
|
||||
jq -e 'all(.[]; .result == "success" or .result == "skipped")' <<< "$NEEDS"
|
||||
|
||||
- name: 'Get fastlane config'
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
set(PROJECT AmneziaVPN)
|
||||
if(NOT AMNEZIAVPN_VERSION)
|
||||
set(AMNEZIAVPN_VERSION 5.1.1.5 CACHE STRING "Client app version")
|
||||
set(AMNEZIAVPN_VERSION 5.1.1.10 CACHE STRING "Client app version")
|
||||
endif()
|
||||
|
||||
set(QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP ON CACHE BOOL "" FORCE)
|
||||
@@ -34,7 +34,7 @@ set(RELEASE_DATE "${CURRENT_DATE}")
|
||||
set(APP_MAJOR_VERSION ${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}.${CMAKE_PROJECT_VERSION_PATCH})
|
||||
|
||||
# bump by 2 on every release, because we're releasing two versions on the play store
|
||||
set(APP_ANDROID_VERSION_CODE 2192)
|
||||
set(APP_ANDROID_VERSION_CODE 2194)
|
||||
if(DEFINED APP_ANDROID_VERSION_CODE_OFFSET)
|
||||
math(EXPR APP_ANDROID_VERSION_CODE "${APP_ANDROID_VERSION_CODE} + ${APP_ANDROID_VERSION_CODE_OFFSET}")
|
||||
endif()
|
||||
|
||||
@@ -65,13 +65,8 @@ namespace amnezia
|
||||
"www.bing.com",
|
||||
"www.samsung.com",
|
||||
"www.nvidia.com",
|
||||
"www.cisco.com",
|
||||
"www.asus.com",
|
||||
"www.logitech.com",
|
||||
"www.dropbox.com",
|
||||
"www.mozilla.org",
|
||||
"addons.mozilla.org",
|
||||
"www.speedtest.net",
|
||||
};
|
||||
|
||||
constexpr char defaultPort[] = "443";
|
||||
|
||||
@@ -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())'
|
||||
|
||||
@@ -81,9 +81,8 @@ class ScreenProtection {
|
||||
|
||||
public func enable(for view: UIView) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
|
||||
view.subviews.forEach {
|
||||
self.pairs.append(ProtectionPair(from: $0))
|
||||
}
|
||||
guard self.pairs.isEmpty else { return }
|
||||
self.pairs.append(ProtectionPair(from: view))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +127,7 @@ struct ProtectionPair {
|
||||
}
|
||||
|
||||
func removeProtection() {
|
||||
textField.superview?.superview?.layer.addSublayer(layer)
|
||||
textField.layer.superlayer?.insertSublayer(layer, above: textField.layer)
|
||||
textField.layer.removeFromSuperlayer()
|
||||
textField.removeFromSuperview()
|
||||
}
|
||||
|
||||
+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")
|
||||
|
||||
|
||||
@@ -36,9 +36,12 @@ def upload_to_external_testers(package)
|
||||
upload_to_testflight(
|
||||
**package,
|
||||
distribute_external: true,
|
||||
groups: ["test"],
|
||||
groups: ["test-external"],
|
||||
changelog: "Improve stability"
|
||||
)
|
||||
rescue Spaceship::UnexpectedResponse => e
|
||||
raise unless e.message.include?("already in beta review")
|
||||
UI.important(e.message)
|
||||
end
|
||||
|
||||
platform :ios do
|
||||
|
||||
@@ -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