Update naiveproxy to v125.0.6422.35-1 and mieru to v3.0.1

This commit is contained in:
dyhkwong
2024-05-14 12:48:26 +08:00
parent fb0627d716
commit eebdc29803
13 changed files with 30 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ jobs:
uses: actions/setup-go@v5
if: steps.cache.outputs.cache-hit != 'true'
with:
go-version: 1.22.2
go-version: 1.22.3
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |

View File

@@ -1,6 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<option name="ENABLE_SECOND_REFORMAT" value="true" />
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>

View File

@@ -196,6 +196,8 @@ object Key {
const val SERVER_PORTS = "serverPorts"
const val SERVER_HOP_INTERVAL = "serverHopInterval"
const val SERVER_NAIVE_NO_POST_QUANTUM = "serverNaiveNoPostQuantum"
const val BALANCER_TYPE = "balancerType"
const val BALANCER_GROUP = "balancerGroup"
const val BALANCER_STRATEGY = "balancerStrategy"

View File

@@ -302,6 +302,8 @@ object DataStore : OnPreferenceDataStoreChangeListener {
var serverMieruMuxLevel by profileCacheStore.stringToInt(Key.SERVER_MIERU_MUX_LEVEL)
var serverWireGuardReserved by profileCacheStore.string(Key.SERVER_WIREGUARD_RESERVED)
var serverNaiveNoPostQuantum by profileCacheStore.boolean(Key.SERVER_NAIVE_NO_POST_QUANTUM)
var balancerType by profileCacheStore.stringToInt(Key.BALANCER_TYPE)
var balancerGroup by profileCacheStore.stringToLong(Key.BALANCER_GROUP)
var balancerStrategy by profileCacheStore.string(Key.BALANCER_STRATEGY)

View File

@@ -39,6 +39,7 @@ public class NaiveBean extends AbstractBean {
public String password;
public String extraHeaders;
public Integer insecureConcurrency;
public Boolean noPostQuantum;
@Override
public void initializeDefaultValues() {
@@ -49,17 +50,19 @@ public class NaiveBean extends AbstractBean {
if (password == null) password = "";
if (extraHeaders == null) extraHeaders = "";
if (insecureConcurrency == null) insecureConcurrency = 0;
if (noPostQuantum == null) noPostQuantum = false;
}
@Override
public void serialize(ByteBufferOutput output) {
output.writeInt(3);
output.writeInt(4);
super.serialize(output);
output.writeString(proto);
output.writeString(username);
output.writeString(password);
output.writeString(extraHeaders);
output.writeInt(insecureConcurrency);
output.writeBoolean(noPostQuantum);
}
@Override
@@ -76,6 +79,9 @@ public class NaiveBean extends AbstractBean {
if (version == 2) {
input.readBoolean(); // uot, removed
}
if (version >= 4) {
noPostQuantum = input.readBoolean();
}
}
@Override

View File

@@ -89,5 +89,8 @@ fun NaiveBean.buildNaiveConfig(port: Int): String {
if (insecureConcurrency > 0) {
it["insecure-concurrency"] = insecureConcurrency
}
if (noPostQuantum) {
it["no-post-quantum"] = true
}
}.toStringPretty()
}

View File

@@ -41,6 +41,7 @@ class NaiveSettingsActivity : ProfileSettingsActivity<NaiveBean>() {
DataStore.serverProtocol = proto
DataStore.serverHeaders = extraHeaders
DataStore.serverInsecureConcurrency = insecureConcurrency
DataStore.serverNaiveNoPostQuantum = noPostQuantum
}
override fun NaiveBean.serialize() {
@@ -52,6 +53,7 @@ class NaiveSettingsActivity : ProfileSettingsActivity<NaiveBean>() {
proto = DataStore.serverProtocol
extraHeaders = DataStore.serverHeaders.replace("\r\n", "\n")
insecureConcurrency = DataStore.serverInsecureConcurrency
noPostQuantum = DataStore.serverNaiveNoPostQuantum
}
override fun PreferenceFragmentCompat.createPreferences(

View File

@@ -215,7 +215,7 @@
<string name="theme">主题颜色</string>
<string name="donate">捐款</string>
<string name="donate_info">世界很可爱 请给世界钱</string>
<string name="extra_headers">附加</string>
<string name="extra_headers">附加头</string>
<string name="username">用户名</string>
<string name="key_opt">密钥(可选)</string>
<string name="group_diff">变化(%s</string>
@@ -507,4 +507,5 @@
<string name="hysteria2_provider">Hysteria 2 提供程序</string>
<string name="nat_stun_server_hint">STUN 服务器</string>
<string name="brook_udp_over_stream">UDP over stream</string>
<string name="naive_no_post_quantum">禁用后量子密钥协商</string>
</resources>

View File

@@ -529,5 +529,6 @@
<string name="hysteria2_provider">Hysteria 2 provider</string>
<string name="nat_stun_server_hint">STUN server</string>
<string name="brook_udp_over_stream">UDP over stream</string>
<string name="naive_no_post_quantum">Disable post-quantum key agreement</string>
</resources>

View File

@@ -49,6 +49,10 @@
app:key="serverInsecureConcurrency"
app:title="@string/naive_insecure_concurrency"
app:useSimpleSummaryProvider="true" />
<SwitchPreference
app:key="serverNaiveNoPostQuantum"
app:title="@string/naive_no_post_quantum"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>

View File

@@ -2,8 +2,8 @@ PACKAGE_NAME=com.github.sagernet.sagernet
VERSION_NAME=0.10.7
VERSION_CODE=203
NAIVE_VERSION_NAME=124.0.6367.54-3
NAIVE_VERSION=47
NAIVE_VERSION_NAME=125.0.6422.35-1
NAIVE_VERSION=48
BROOK_VERSION_NAME=20240606
BROOK_VERSION=9
@@ -11,8 +11,8 @@ BROOK_VERSION=9
HYSTERIA2_VERSION_NAME=2.4.3
HYSTERIA2_VERSION=18
MIERU_VERSION_NAME=3.0.0
MIERU_VERSION=17
MIERU_VERSION_NAME=3.0.1
MIERU_VERSION=18
SHADOWTLS_VERSION_NAME=0.2.25
SHADOWTLS_VERSION=2