Skip to content

Commit 44713d4

Browse files
committed
Merge pull request #21 from sngl/master
Added hostname configuration on wan and lan
2 parents 2b79fc8 + 8e0578c commit 44713d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

usr/lib/lua/luci/controller/arduino/index.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ function config_post()
465465
if not_nil_or_empty(params["hostname"]) then
466466
local hostname = string.gsub(params["hostname"], " ", "_")
467467
set_first(uci, "system", "system", "hostname", hostname)
468+
uci:set("network", "lan", "hostname", hostname)
469+
uci:set("network", "wan", "hostname", hostname)
468470
end
469471

470472
if params["zonename"] then

0 commit comments

Comments
 (0)