DomainNewSource

data class DomainNewSource(val content: String, val port: Int? = null, val priority: Int? = null, val type: String, val weight: Int? = null)

Constructors

Link copied to clipboard
fun DomainNewSource(content: String, port: Int? = null, priority: Int? = null, type: String, weight: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The address of source. Valid values can be ip or doaminName. Each item's content can not be repeated.

Link copied to clipboard
val port: Int? = null

The port of source. Valid values are 443 and 80. Default value is 80.

Link copied to clipboard
val priority: Int? = null

Priority of the source. Valid values are 0 and 100. Default value is 20.

Link copied to clipboard

The type of the source. Valid values are ipaddr, domain and oss.

Link copied to clipboard
val weight: Int? = null

Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.