adapter noises

This commit is contained in:
2dust
2024-09-17 11:02:13 +08:00
parent 105a41eeea
commit 845562bca3
2 changed files with 8 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ data class V2rayConfig(
data class OutSettingsBean(
var vnext: List<VnextBean>? = null,
var fragment: FragmentBean? = null,
var noise: NoiseBean? = null,
var noises: List<NoiseBean>? = null,
var servers: List<ServersBean>? = null,
/*Blackhole*/
var response: Response? = null,
@@ -129,6 +129,7 @@ data class V2rayConfig(
)
data class NoiseBean(
var type: String? = null,
var packet: String? = null,
var delay: String? = null
)

View File

@@ -641,9 +641,12 @@ object V2rayConfigUtil {
interval = settingsStorage?.decodeString(AppConfig.PREF_FRAGMENT_INTERVAL)
?: "10-20"
),
noise = V2rayConfig.OutboundBean.OutSettingsBean.NoiseBean(
packet = "rand:100-200",
delay = "10-20",
noises = listOf(
V2rayConfig.OutboundBean.OutSettingsBean.NoiseBean(
type = "rand",
packet = "100-200",
delay = "10-20",
)
),
)
fragmentOutbound.streamSettings = V2rayConfig.OutboundBean.StreamSettingsBean(