Refactor the Outbound transport and tls in the configuration file

This commit is contained in:
2dust
2025-04-17 15:23:57 +08:00
parent 83fd6efc17
commit e1def0616a
7 changed files with 274 additions and 239 deletions
@@ -151,7 +151,7 @@ object V2rayConfigManager {
}
result.status = true
result.content = v2rayConfig.toPrettyPrinting()
result.content = JsonUtil.toJsonPretty(v2rayConfig) ?: ""
result.domainPort = if (retMore.first) retMore.second else retOut.second
result.guid = guid
return result
@@ -195,7 +195,7 @@ object V2rayConfigManager {
}
result.status = true
result.content = v2rayConfig.toPrettyPrinting()
result.content = JsonUtil.toJsonPretty(v2rayConfig) ?: ""
result.domainPort = if (retMore.first) retMore.second else retOut.second
result.guid = guid
return result
@@ -726,8 +726,7 @@ object V2rayConfigManager {
V2rayConfig.OutboundBean.StreamSettingsBean.SockoptBean(
dialerProxy = outbound.tag
)
if (nextNode.configType == EConfigType.WIREGUARD)
{
if (nextNode.configType == EConfigType.WIREGUARD) {
domainPort = nextNode.getServerAddressAndPort()
}
}