Skip to content

Commit

Permalink
بازگردانی برخی از تغییرات مربوط به Routing Rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Feb 5, 2024
1 parent 35f506c commit ccab137
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 26 deletions.
2 changes: 1 addition & 1 deletion assets/js/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function setLanguagePreference(lang) {
}

async function fetchLanguageData(lang) {
const response = await fetch("assets/lang/"+lang+".json?v1.2");
const response = await fetch("assets/lang/"+lang+".json?v1.3");
return response.json();
}

Expand Down
4 changes: 2 additions & 2 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function generateJson() {
alert('فرم را تکمیل نمایید.');
return false;
}
fetch('fragment.json?v1.4')
fetch('fragment.json?v1.5')
.then(response => response.json())
.then(data => {
data.outbounds[0].protocol = protocol;
Expand Down Expand Up @@ -325,7 +325,7 @@ function generateJson() {
if ( ! direct ) {
/*delete data.routing.rules[1];
delete data.routing.rules[2];*/
data.routing.rules = data.routing.rules.filter((rule, index) => index !== 1 && index !== 2 && index !== 3);
data.routing.rules = data.routing.rules.filter((rule, index) => index !== 1 && index !== 2);
}
resolve(data);
})
Expand Down
2 changes: 1 addition & 1 deletion assets/lang/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"config_switch_mux": "Mux",
"config_switch_mux_tooltip": "提高连接建立速度,减少发送和接收数据的延迟",
"config_switch_direct_rule": "路由规则",
"config_switch_direct_rule_tooltip": "路由规则(将流量引导至伊朗、中国和俄罗斯的IP和域名 + 在谷歌、微软、Meta等使用IPv4",
"config_switch_direct_rule_tooltip": "导航规则(在IR和CN中指导IP和域名的流量)",
"config_mux_label": "并发值",
"config_mux_concurrency": "并发",
"config_mux_concurrency_tooltip": "选择一个介于1到1024之间的数字(建议将8作为默认值)",
Expand Down
2 changes: 1 addition & 1 deletion assets/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"config_switch_mux": "Mux",
"config_switch_mux_tooltip": "Improving connection establishment speed and reducing latency in sending & receiving data",
"config_switch_direct_rule": "Routing Rules",
"config_switch_direct_rule_tooltip": "Routing rules (directing traffic for IP and domains in IR, CN & RU + using IPv4 for Google, Microsoft, Meta & ...)",
"config_switch_direct_rule_tooltip": "Routing rules (directing traffic for IP and domains in IR & CN)",
"config_mux_label": "the value of Concurrency",
"config_mux_concurrency": "Concurrency",
"config_mux_concurrency_tooltip": "Choose a number between 1 and 1024 (8 is recommended as the default value)",
Expand Down
2 changes: 1 addition & 1 deletion assets/lang/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"config_switch_mux": "Mux",
"config_switch_mux_tooltip": "بهبود سرعت برقراری اتصال و کاهش زمان تاخیر در ارسال\u200Cودریافت داده\u200Cها",
"config_switch_direct_rule": "Routing Rules",
"config_switch_direct_rule_tooltip": "قوانین مسیریابی (مستقیم\u200Cکردن ترافیک آی\u200Cپی و دامنه\u200Cهای ایران، چین و روسیه + استفاده از IPv4 برای گوگل، مایکروسافت، متا و ...)",
"config_switch_direct_rule_tooltip": "قوانین مسیریابی (مستقیم\u200Cکردن ترافیک آی\u200Cپی و دامنه\u200Cهای ایران و چین)",
"config_mux_label": "مقدار Concurrency",
"config_mux_concurrency": "concurrency",
"config_mux_concurrency_tooltip": "یکی\u200Cاز اعداد مابین ۸ تا ۱۶ را انتخاب کنید (۸ به\u200Cعنوان مقدار پیشفرض پیشنهاد می\u200Cشود)",
Expand Down
2 changes: 1 addition & 1 deletion assets/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"config_switch_mux": "Mux",
"config_switch_mux_tooltip": "Повышение скорости установки соединения и снижение задержки при отправке и приеме данных",
"config_switch_direct_rule": "Правила маршрутизации",
"config_switch_direct_rule_tooltip": "Правила маршрутизации (направление трафика для IP-адресов и доменов в Иране, Китае и России + использование IPv4 для Google, Microsoft, Meta и ...)",
"config_switch_direct_rule_tooltip": "Правила маршрутизации (направление трафика для IP и доменов в Иране и Китае)",
"config_mux_label": "Значение параллелизма",
"config_mux_concurrency": "Параллелизм",
"config_mux_concurrency_tooltip": "Выберите число от 1 до 1024 (рекомендуется использовать 8 в качестве значения по умолчанию)",
Expand Down
16 changes: 0 additions & 16 deletions fragment.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,27 +157,11 @@
"outboundTag": "direct",
"ip": [
"geoip:private",
"geoip:ru",
"geoip:cn",
"geoip:ir"
],
"enabled": true
},
{
"id": "5425034033205580638",
"type": "field",
"outboundTag": "IPv4",
"domain": [
"domain:google.com",
"domain:youtube.com",
"geosite:google",
"geosite:netflix",
"geosite:meta",
"geosite:microsoft",
"geosite:adobe"
],
"enabled": true
},
{
"id": "5627785659655799759",
"type": "field",
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ <h1>اینترنت برای همه؛ یا هیچ‌کس!</h1>
<strong data-i18n="config_switch_mux"></strong>
</label>
<label class="switch" data-toggle="tooltip" data-i18n-title="config_switch_direct_rule_tooltip">
<input type="checkbox" id="direct" checked />
<input type="checkbox" id="direct" />
<span class="slider round"></span>
<strong data-i18n="config_switch_direct_rule"></strong>
</label>
Expand Down Expand Up @@ -200,8 +200,8 @@ <h4 class="modal-title">دونیت</h4>
</div>
<script src="./assets/js/jquery.min.js"></script>
<script src="./assets/js/bootstrap.min.js"></script>
<script src="./assets/js/lang.js?v1.5"></script>
<script src="./assets/js/script.js?v1.8.11"></script>
<script src="./assets/js/lang.js?v1.6"></script>
<script src="./assets/js/script.js?v1.8.12"></script>
</footer>
</div>
</div>
Expand Down

0 comments on commit ccab137

Please sign in to comment.