summaryrefslogtreecommitdiffstats
path: root/modules-available/webinterface/inc
diff options
context:
space:
mode:
authorSimon Rettberg2026-04-30 11:31:58 +0200
committerSimon Rettberg2026-04-30 11:31:58 +0200
commit6cb052b9c672cc0eff18ea077736bde319e8966d (patch)
tree156540d0169b494f6b6a68f29cd418721e386f0a /modules-available/webinterface/inc
parentstyle: Fix radio/checkbox margin inside input-group-addon (diff)
downloadslx-admin-master.tar.gz
slx-admin-master.tar.xz
slx-admin-master.zip
[webinterface] Show current proxy chain in trusted proxy dialogHEADmaster
Add to list of trusted proxies with a single click.
Diffstat (limited to 'modules-available/webinterface/inc')
-rw-r--r--modules-available/webinterface/inc/webinterface.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/webinterface/inc/webinterface.inc.php b/modules-available/webinterface/inc/webinterface.inc.php
index 2541ea24..af4e0268 100644
--- a/modules-available/webinterface/inc/webinterface.inc.php
+++ b/modules-available/webinterface/inc/webinterface.inc.php
@@ -146,7 +146,7 @@ class WebInterface
*/
public static function getProxiesTrusted(): array
{
- return Property::get(self::PROP_PROXIES_TRUSTED, []);
+ return json_decode(Property::get(self::PROP_PROXIES_TRUSTED, '{}'), true);
}
/**
@@ -154,7 +154,7 @@ class WebInterface
*/
public static function setProxiesTrusted(array $proxies): void
{
- Property::set(self::PROP_PROXIES_TRUSTED, $proxies);
+ Property::set(self::PROP_PROXIES_TRUSTED, json_encode($proxies));
}
} \ No newline at end of file