Skip to content

Commit

Permalink
Ignore True für DHCP-WAN entfernen und deprecated dhcp_options als "o…
Browse files Browse the repository at this point in the history
…ption" durch "list" ersetzen.
  • Loading branch information
mariuswhm committed Jul 2, 2024
1 parent f4e3b14 commit 124ca22
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@ uci:set('dhcp', 'wan', 'start', '100')
uci:set('dhcp', 'wan', 'limit', '150')
uci:set('dhcp', 'wan', 'leasetime', '12h')
uci:set('dhcp', 'wan', 'force', '1')
uci:set('dhcp', 'wan', 'dhcp_option', '6,9.9.9.9')
local dhcp_options = uci:get_list('dhcp', 'wan', 'dhcp_option') or {}
table.insert(dhcp_options, '6,9.9.9.9')
uci:set('dhcp', 'wan', 'dhcp_option', dhcp_options)
uci:delete('dhcp', 'wan', 'ignore')
uci:commit('dhcp')

0 comments on commit 124ca22

Please sign in to comment.