Add splithttp transport for xray
This commit is contained in:
1 parent
bdcecfca72
commit
518ef1e0ec
16 files changed
+173
-16
No files matched your search
@@ -139,6 +139,7 @@ data class V2rayConfig(
|
||||
var kcpSettings: KcpSettingsBean? = null,
|
||||
var wsSettings: WsSettingsBean? = null,
|
||||
var httpupgradeSettings: HttpupgradeSettingsBean? = null,
|
||||
var splithttpSettings: SplithttpSettingsBean? = null,
|
||||
var httpSettings: HttpSettingsBean? = null,
|
||||
var tlsSettings: TlsSettingsBean? = null,
|
||||
var quicSettings: QuicSettingBean? = null,
|
||||
@@ -192,6 +193,10 @@ data class V2rayConfig(
|
||||
var host: String = "",
|
||||
val acceptProxyProtocol: Boolean? = null)
|
||||
|
||||
data class SplithttpSettingsBean(var path: String = "",
|
||||
var host: String = "",
|
||||
val maxUploadSize: Int? = null,
|
||||
val maxConcurrentUploads: Int? = null)
|
||||
data class HttpSettingsBean(var host: List<String> = ArrayList(),
|
||||
var path: String = "")
|
||||
|
||||
@@ -279,6 +284,13 @@ data class V2rayConfig(
|
||||
httpupgradeSetting.path = path ?: "/"
|
||||
httpupgradeSettings = httpupgradeSetting
|
||||
}
|
||||
"splithttp" -> {
|
||||
val splithttpSetting = SplithttpSettingsBean()
|
||||
splithttpSetting.host = host ?: ""
|
||||
sni = splithttpSetting.host
|
||||
splithttpSetting.path = path ?: "/"
|
||||
splithttpSettings = splithttpSetting
|
||||
}
|
||||
"h2", "http" -> {
|
||||
network = "h2"
|
||||
val h2Setting = HttpSettingsBean()
|
||||
@@ -418,6 +430,12 @@ data class V2rayConfig(
|
||||
httpupgradeSetting.host,
|
||||
httpupgradeSetting.path)
|
||||
}
|
||||
"splithttp" -> {
|
||||
val splithttpSetting = streamSettings?.splithttpSettings ?: return null
|
||||
listOf("",
|
||||
splithttpSetting.host,
|
||||
splithttpSetting.path)
|
||||
}
|
||||
"h2" -> {
|
||||
val h2Setting = streamSettings?.httpSettings ?: return null
|
||||
listOf("",
|
||||
|
||||
Reference in new issue
Block a user