mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2026-05-09 18:11:26 +08:00
adopt external-controller-cors
This commit is contained in:
@@ -47,6 +47,9 @@ data class ConfigurationOverride(
|
||||
@SerialName("external-controller-tls")
|
||||
var externalControllerTLS: String? = null,
|
||||
|
||||
@SerialName("external-controller-cors")
|
||||
var externalControllerCors: ExternalControllerCors = ExternalControllerCors(),
|
||||
|
||||
@SerialName("secret")
|
||||
var secret: String? = null,
|
||||
|
||||
@@ -210,6 +213,15 @@ data class ConfigurationOverride(
|
||||
var geosite: String? = null,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class ExternalControllerCors(
|
||||
@SerialName("allow-origins")
|
||||
var allowOrigins: List<String>? = null,
|
||||
|
||||
@SerialName("allow-private-network")
|
||||
var allowPrivateNetwork: Boolean? = null,
|
||||
)
|
||||
|
||||
override fun writeToParcel(parcel: Parcel, flags: Int) {
|
||||
Parcelizer.encodeToParcel(serializer(), parcel, this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user