mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
ShamrockPrivate
: 正确GUI配置配置文件
Signed-off-by: WhiteChi <whitechi73@outlook.com>
This commit is contained in:
parent
d347bd0a41
commit
ee9cf694a0
@ -52,18 +52,11 @@ internal object ShamrockConfig {
|
|||||||
it.port = wsPort
|
it.port = wsPort
|
||||||
}
|
}
|
||||||
|
|
||||||
val newPassiveWebSocketList = intent.getStringExtra("ws_addr")?.split(",", "|", ",")?.filter { address ->
|
Config.passiveWebSocket = intent.getStringExtra("ws_addr")?.split(",", "|", ",")?.filter { address ->
|
||||||
Config.passiveWebSocket?.any {
|
address.isNotBlank() && (address.startsWith("ws://") || address.startsWith("wss://"))
|
||||||
it.address == address
|
|
||||||
} != true
|
|
||||||
}?.map {
|
}?.map {
|
||||||
ConnectionConfig(address = it)
|
ConnectionConfig(address = it)
|
||||||
}?.toMutableList()
|
}?.toMutableList()
|
||||||
if (Config.passiveWebSocket == null) {
|
|
||||||
Config.passiveWebSocket = newPassiveWebSocketList
|
|
||||||
} else {
|
|
||||||
Config.passiveWebSocket?.addAll(newPassiveWebSocketList ?: emptyList())
|
|
||||||
}
|
|
||||||
|
|
||||||
putString( "key_store", intent.getStringExtra("key_store")) // 证书路径
|
putString( "key_store", intent.getStringExtra("key_store")) // 证书路径
|
||||||
putString( "ssl_pwd", intent.getStringExtra("ssl_pwd")) // 证书密码
|
putString( "ssl_pwd", intent.getStringExtra("ssl_pwd")) // 证书密码
|
||||||
|
Loading…
x
Reference in New Issue
Block a user