|
@@ -22,6 +22,7 @@
|
|
|
package io.nekohasekai.sagernet.fmt.naive
|
|
|
|
|
|
import cn.hutool.json.JSONObject
|
|
|
+import io.nekohasekai.sagernet.BuildConfig
|
|
|
import io.nekohasekai.sagernet.ktx.linkBuilder
|
|
|
import io.nekohasekai.sagernet.ktx.toLink
|
|
|
import io.nekohasekai.sagernet.ktx.unUrlSafe
|
|
@@ -75,6 +76,8 @@ fun NaiveBean.buildNaiveConfig(port: Int): String {
|
|
|
if (extraHeaders.isNotBlank()) {
|
|
|
it["extra-headers"] = extraHeaders.split("\n").joinToString("\r\n")
|
|
|
}
|
|
|
- it["log"] = ""
|
|
|
+ if (BuildConfig.DEBUG) {
|
|
|
+ it["log"] = ""
|
|
|
+ }
|
|
|
}.toStringPretty()
|
|
|
}
|