Skip to content

Commit

Permalink
webui: fix error handling in networking form
Browse files Browse the repository at this point in the history
  • Loading branch information
themactep committed Feb 21, 2025
1 parent 51d79ae commit 128d7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/thingino-webui/files/www/x/config-network.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ setup_iface() {
[ -z "$interface" ] && set_error_flag "Network interface is not set"
[ -z "$mode" ] && set_error_flag "Network mode is not set"
if [ "static" = "$mode" ]; then
[ -z "$address" ] && die "Interface IP address is not set"
[ -z "$netmask" ] && die "Netmask is not set"
[ -z "$address" ] && set_error_flag "Interface IP address is not set"
[ -z "$netmask" ] && set_error_flag "Netmask is not set"
fi

{
Expand Down

0 comments on commit 128d7b4

Please sign in to comment.