Skip to content

Commit 5754ab8

Browse files
committed
chore: remove JSON sample from Custom type
1 parent d2ec1cc commit 5754ab8

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

  • app/src/main/kotlin/features/proxy/server/model

app/src/main/kotlin/features/proxy/server/model/Custom.kt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import kotlinx.serialization.json.contentOrNull
1313
data class Custom(
1414
var remarks: String = "",
1515
var overrideAsteriskInboundAndDns: Boolean = true,
16-
var configJson: String = DefaultCustomXrayConfigJson,
16+
var configJson: String = "",
1717
) : ProxyServer<Custom> {
1818
override fun getInfo(): ProxyServerInfo {
1919
return ProxyServerInfo(remarks, customXrayConfigSummary(configJson), "Custom")
@@ -243,17 +243,6 @@ private val CustomXrayConfigPrettyJson = Json {
243243
prettyPrintIndent = " "
244244
}
245245

246-
private const val DefaultCustomXrayConfigJson = """
247-
{
248-
"outbounds": [
249-
{
250-
"tag": "proxy",
251-
"protocol": "freedom"
252-
}
253-
]
254-
}
255-
"""
256-
257246
private const val CustomProxyOutboundTag = "proxy"
258247
private val CustomFixedOutboundTags = setOf(
259248
CustomProxyOutboundTag,

0 commit comments

Comments
 (0)