From b98c1fb912f7f2bfb7e201c99bcb57c1fae3919f Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 19 Oct 2025 09:28:21 -0700 Subject: [PATCH] Add bridgedEnable + br0 config handling to buildConfig() --- src/RaspAP/Networking/Hotspot/DhcpcdManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/RaspAP/Networking/Hotspot/DhcpcdManager.php b/src/RaspAP/Networking/Hotspot/DhcpcdManager.php index b49e9285..59122e1d 100644 --- a/src/RaspAP/Networking/Hotspot/DhcpcdManager.php +++ b/src/RaspAP/Networking/Hotspot/DhcpcdManager.php @@ -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',