adopt external-controller-cors

This commit is contained in:
wwqgtxx
2024-09-30 13:12:51 +08:00
parent e39bfe8832
commit 97f52bbcb6
3 changed files with 28 additions and 0 deletions

View File

@@ -157,6 +157,20 @@ class OverrideSettingsDesign(
empty = R.string.default_
)
editableTextList(
value = configuration.externalControllerCors::allowOrigins,
adapter = TextAdapter.String,
title = R.string.allow_origins,
placeholder = R.string.dont_modify,
)
selectableList(
value = configuration.externalControllerCors::allowPrivateNetwork,
values = booleanValues,
valuesText = booleanValuesText,
title = R.string.allow_private_network,
)
editableText(
value = configuration::secret,
adapter = NullableTextAdapter.String,

View File

@@ -150,6 +150,8 @@
<string name="ipv6">IPv6</string>
<string name="external_controller">External Controller</string>
<string name="external_controller_tls">External Controller TLS</string>
<string name="allow_origins">External Controller Allow Origins</string>
<string name="allow_private_network">External Controller Allow Private Network</string>
<string name="secret">Secret</string>
<string name="hosts">Hosts</string>
<string name="_new">New</string>