@@ -153,15 +153,32 @@ class ServerActivity : BaseActivity() {
|
|||||||
sp_header_type_title?.text = if (networks[position] == "grpc")
|
sp_header_type_title?.text = if (networks[position] == "grpc")
|
||||||
getString(R.string.server_lab_mode_type) else
|
getString(R.string.server_lab_mode_type) else
|
||||||
getString(R.string.server_lab_head_type)
|
getString(R.string.server_lab_head_type)
|
||||||
config?.headerType?.let { it ->
|
sp_header_type?.setSelection(
|
||||||
sp_header_type?.setSelection(Utils.arrayFind(types, it))
|
Utils.arrayFind(
|
||||||
}
|
types,
|
||||||
config?.host?.let { it ->
|
when (networks[position]) {
|
||||||
et_request_host?.text = Utils.getEditable(it)
|
"grpc" -> config?.mode
|
||||||
}
|
else -> config?.headerType
|
||||||
config?.path?.let { it ->
|
}.orEmpty()
|
||||||
et_path?.text = Utils.getEditable(it)
|
)
|
||||||
}
|
)
|
||||||
|
|
||||||
|
et_request_host?.text = Utils.getEditable(
|
||||||
|
when (networks[position]) {
|
||||||
|
"quic" -> config?.quicSecurity
|
||||||
|
"grpc" -> config?.authority
|
||||||
|
else -> config?.host
|
||||||
|
}.orEmpty()
|
||||||
|
)
|
||||||
|
et_path?.text = Utils.getEditable(
|
||||||
|
when (networks[position]) {
|
||||||
|
"kcp" -> config?.seed
|
||||||
|
"quic" -> config?.quicKey
|
||||||
|
"grpc" -> config?.serviceName
|
||||||
|
else -> config?.path
|
||||||
|
}.orEmpty()
|
||||||
|
)
|
||||||
|
|
||||||
tv_request_host?.text = Utils.getEditable(
|
tv_request_host?.text = Utils.getEditable(
|
||||||
getString(
|
getString(
|
||||||
when (networks[position]) {
|
when (networks[position]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user