Skip to content

Commit 7fbeac7

Browse files
committed
luci-mod-network: Solve the problem of no address assignment with multiple interfaces enabled for DHCP
Due to missing configuration options, when the DHCP service is enabled on multiple interfaces, it cannot assign addresses to clients under specific conditions. These options are now being added to resolve the issue. Signed-off-by: Roc Lai <[email protected]>
1 parent f4c9919 commit 7fbeac7

File tree

1 file changed

+1
-0
lines changed
  • modules/luci-mod-network/htdocs/luci-static/resources/view/network

1 file changed

+1
-0
lines changed

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ return view.extend({
648648
uci.set('dhcp', section_id, 'start', 100);
649649
uci.set('dhcp', section_id, 'limit', 150);
650650
uci.set('dhcp', section_id, 'leasetime', '12h');
651+
uci.set('dhcp', section_id, 'dhcpv4', 'server');
651652
}
652653
else {
653654
uci.set('dhcp', section_id, 'ignore', 1);

0 commit comments

Comments
 (0)