Skip to content

Commit

Permalink
adapter noises
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Sep 17, 2024
1 parent 105a41e commit 845562b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion V2rayNG/app/src/main/kotlin/com/v2ray/ang/dto/V2rayConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -129,6 +129,7 @@ data class V2rayConfig(
)

data class NoiseBean(
var type: String? = null,
var packet: String? = null,
var delay: String? = null
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 845562b

Please sign in to comment.