mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
fix
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Language</source>
|
||||
<translation>زبان</translation>
|
||||
<translation type="vanished">زبان</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Security</source>
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Language</source>
|
||||
<translation>语言</translation>
|
||||
<translation type="vanished">语言</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Security</source>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user