This commit is contained in:
arm64v8a
2023-01-29 12:30:28 +09:00
parent 2482a5b48f
commit a42acc82b9
5 changed files with 50 additions and 29 deletions

View File

@@ -8,6 +8,10 @@ Support Windows / Linux / macOS amd64 out of the box now.
目前支持 Windows / Linux / macOS amd64 开箱即用
## Readme Translations
中文 / English (undone) / [fa_IR](README_fa.md)
## 下载 / Download
### GitHub Releases (Portable ZIP)

View File

@@ -332,11 +332,11 @@ namespace NekoRay {
}
// def_outbound
status->routingRules += QJsonObject{
{"type", "field"},
{"port", "0-65535"},
{"outboundTag", dataStore->routing->def_outbound},
};
if (!status->forTest) status->routingRules += QJsonObject{
{"type", "field"},
{"port", "0-65535"},
{"outboundTag", dataStore->routing->def_outbound},
};
// final add routing rule
auto routingRules = QString2QJsonObject(dataStore->routing->custom)["rules"].toArray();
@@ -813,10 +813,10 @@ namespace NekoRay {
add_rule_route(status->domainListDirect, false, "bypass");
// def_outbound
status->routingRules += QJsonObject{
{"port_range", ":"},
{"outbound", dataStore->routing->def_outbound},
};
if (!status->forTest) status->routingRules += QJsonObject{
{"port_range", ":"},
{"outbound", dataStore->routing->def_outbound},
};
// geopath
auto geoip = FindCoreAsset("geoip.db");
@@ -865,8 +865,8 @@ namespace NekoRay {
}
QString WriteVPNSingBoxConfig() {
auto match_out = NekoRay::dataStore->vpn_rule_white ? "proxy" : "direct";
auto no_match_out = NekoRay::dataStore->vpn_rule_white ? "direct" : "proxy";
auto match_out = NekoRay::dataStore->vpn_rule_white ? "nekoray-socks" : "direct";
auto no_match_out = NekoRay::dataStore->vpn_rule_white ? "direct" : "nekoray-socks";
// user rule
QString process_name_rule = dataStore->vpn_rule_process.trimmed();
if (!process_name_rule.isEmpty()) {

View File

@@ -101,7 +101,7 @@
</message>
<message>
<source>Language</source>
<translation>زبان</translation>
<translation type="vanished">زبان</translation>
</message>
<message>
<source>Security</source>

View File

@@ -101,7 +101,7 @@
</message>
<message>
<source>Language</source>
<translation></translation>
<translation type="vanished"></translation>
</message>
<message>
<source>Security</source>

View File

@@ -353,7 +353,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Language</string>
<string notr="true">Language</string>
</property>
</widget>
</item>
@@ -361,7 +361,7 @@
<widget class="QComboBox" name="language">
<item>
<property name="text">
<string>System</string>
<string notr="true">System</string>
</property>
</item>
<item>
@@ -443,20 +443,37 @@
</layout>
</item>
<item row="5" column="0">
<widget class="QGroupBox" name="groupBox_2">
<layout class="QHBoxLayout" name="horizontalLayout_23">
<item>
<widget class="QLabel" name="label_17">
<property name="text">
<string>Max log lines</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="max_log_line"/>
</item>
</layout>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_24" stretch="1,1">
<item>
<widget class="QGroupBox" name="groupBox_2">
<layout class="QHBoxLayout" name="horizontalLayout_23">
<item>
<widget class="QLabel" name="label_17">
<property name="text">
<string>Max log lines</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="max_log_line"/>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>