mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-07 21:07:42 +02:00
Merge pull request #1810 from RaspAP/fix/php74-compatibility
Fix: php7.4 compatibility
This commit is contained in:
commit
125ae7a39a
@ -26,12 +26,16 @@ class Dashboard {
|
|||||||
*/
|
*/
|
||||||
public function getVpnManged(?string $interface = null): ?string
|
public function getVpnManged(?string $interface = null): ?string
|
||||||
{
|
{
|
||||||
return match ($interface) {
|
switch ($interface) {
|
||||||
'wg0' => '/wg_conf',
|
case 'wg0':
|
||||||
'tun0' => '/openvpn_conf',
|
return '/wg_conf';
|
||||||
'tailscale0' => '/plugin__Tailscale',
|
case 'tun0':
|
||||||
default => null,
|
return '/openvpn_conf';
|
||||||
};
|
case 'tailscale0':
|
||||||
|
return '/plugin__Tailscale';
|
||||||
|
default:
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user