From 33546e374b1c4ea138c097260ba761c0aac7112c Mon Sep 17 00:00:00 2001 From: BaronGreenback Date: Sun, 22 Nov 2020 14:07:26 +0000 Subject: [PATCH] Update networking.js Checking for ip4/ip6 disabled. --- src/controllers/dashboard/networking.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controllers/dashboard/networking.js b/src/controllers/dashboard/networking.js index 60ecf68eb..e463fd66a 100644 --- a/src/controllers/dashboard/networking.js +++ b/src/controllers/dashboard/networking.js @@ -93,6 +93,10 @@ import alert from '../../components/alert'; return 'The http and https ports must be different.'; } + if (!form.querySelector('#chkEnableIP6').checked && !form.querySelector('#chkEnableIP4').checked) { + return 'Either IPv4 or IPv6 need to be checked.' + } + return null; }