diff --git a/fmt/Bean2External.cpp b/fmt/Bean2External.cpp
index 9eb89e5..34bb6ca 100644
--- a/fmt/Bean2External.cpp
+++ b/fmt/Bean2External.cpp
@@ -97,7 +97,7 @@ namespace NekoGui_fmt {
proxy_url.setPort(connect_port);
proxy_url.setHost(domain_address);
- result.arguments += "--log";
+ if (!disable_log) result.arguments += "--log";
result.arguments += "--listen=socks://127.0.0.1:" + Int2String(socks_port);
result.arguments += "--proxy=" + proxy_url.toString(QUrl::FullyEncoded);
if (domain_address != connect_address)
diff --git a/fmt/NaiveBean.hpp b/fmt/NaiveBean.hpp
index 155264a..85e9b35 100644
--- a/fmt/NaiveBean.hpp
+++ b/fmt/NaiveBean.hpp
@@ -13,6 +13,8 @@ namespace NekoGui_fmt {
QString certificate = "";
int insecure_concurrency = 0;
+ bool disable_log = false;
+
NaiveBean() : AbstractBean(0) {
_add(new configItem("username", &username, itemType::string));
_add(new configItem("password", &password, itemType::string));
@@ -21,6 +23,7 @@ namespace NekoGui_fmt {
_add(new configItem("sni", &sni, itemType::string));
_add(new configItem("certificate", &certificate, itemType::string));
_add(new configItem("insecure_concurrency", &insecure_concurrency, itemType::integer));
+ _add(new configItem("disable_log", &disable_log, itemType::boolean));
};
QString DisplayCoreType() override { return "Naive"; };
diff --git a/translations/fa_IR.ts b/translations/fa_IR.ts
index cda7bdd..68bbdf2 100644
--- a/translations/fa_IR.ts
+++ b/translations/fa_IR.ts
@@ -885,6 +885,14 @@ This needs to be run NekoBox with administrator privileges.
Insecure concurrency
همزمانی ناامن
+
+ Disable logs
+
+
+
+ Turn on this option if your connection is lost after a while
+
+
EditQUIC
diff --git a/translations/ru_RU.ts b/translations/ru_RU.ts
index 52673f6..983c8a6 100644
--- a/translations/ru_RU.ts
+++ b/translations/ru_RU.ts
@@ -892,6 +892,14 @@ https://matsuridayo.github.io/n-configuration/#vpn-tun
Insecure concurrency
+
+ Disable logs
+
+
+
+ Turn on this option if your connection is lost after a while
+
+
EditQUIC
diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts
index ae5f7d9..26a405a 100644
--- a/translations/zh_CN.ts
+++ b/translations/zh_CN.ts
@@ -893,6 +893,14 @@ This needs to be run NekoBox with administrator privileges.
Insecure concurrency
不安全并发
+
+ Disable logs
+ 关闭日志
+
+
+ Turn on this option if your connection is lost after a while
+ 如果连接一段时间后出现中断,请打开此选项
+
EditQUIC
diff --git a/ui/edit/edit_naive.cpp b/ui/edit/edit_naive.cpp
index 9286859..7539251 100644
--- a/ui/edit/edit_naive.cpp
+++ b/ui/edit/edit_naive.cpp
@@ -24,6 +24,7 @@ void EditNaive::onStart(std::shared_ptr _ent) {
P_LOAD_STRING(sni);
P_C_LOAD_STRING(certificate);
P_LOAD_INT(insecure_concurrency);
+ P_LOAD_BOOL(disable_log);
}
bool EditNaive::onEnd() {
@@ -36,6 +37,7 @@ bool EditNaive::onEnd() {
P_SAVE_STRING(sni);
P_C_SAVE_STRING(certificate);
P_SAVE_INT(insecure_concurrency);
+ P_SAVE_BOOL(disable_log);
return true;
}
diff --git a/ui/edit/edit_naive.ui b/ui/edit/edit_naive.ui
index e25e528..9063699 100644
--- a/ui/edit/edit_naive.ui
+++ b/ui/edit/edit_naive.ui
@@ -6,8 +6,8 @@
0
0
- 400
- 300
+ 525
+ 304
@@ -103,6 +103,20 @@
-
+ -
+
+
+ Disable logs
+
+
+
+ -
+
+
+ Turn on this option if your connection is lost after a while
+
+
+