mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-27 07:31:09 +01:00
Add bridgedEnable + br0 config handling to buildConfig()
This commit is contained in:
@@ -36,6 +36,7 @@ class DhcpcdManager
|
||||
bool $repeaterEnable,
|
||||
bool $wifiAPEnable,
|
||||
bool $dualAPEnable,
|
||||
?array $bridgeConfig = null,
|
||||
StatusMessage $status
|
||||
): bool
|
||||
{
|
||||
@@ -64,6 +65,9 @@ class DhcpcdManager
|
||||
$config[] = '# RaspAP br0 configuration';
|
||||
$config[] = 'denyinterfaces eth0 wlan0';
|
||||
$config[] = 'interface br0';
|
||||
$config[] = 'static ip_address='.$bridgeConfig['staticIp'] . '/'. $bridgeConfig['netmask'];
|
||||
$config[] = 'static routers='.$bridgeConfig['gateway'];
|
||||
$config[] = 'static domain_name_servers='.$bridgeConfig['dns'];
|
||||
} elseif ($repeaterEnable) {
|
||||
$config = [
|
||||
'# RaspAP ' . $ap_iface . ' configuration',
|
||||
|
||||
Reference in New Issue
Block a user