"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "client/src/components/Settings/Dhcp/index.js" between
AdGuardHome-0.104.1.tar.gz and AdGuardHome-0.104.3.tar.gz

About: AdGuard Home is a network-wide ads & trackers blocking DNS server. It operates as a DNS server that re-routes tracking domains to a "black hole," thus preventing your devices from connecting to those servers.

index.js  (AdGuardHome-0.104.1):index.js  (AdGuardHome-0.104.3)
skipping to change at line 68 skipping to change at line 68
const interface_name = useSelector( const interface_name = useSelector(
(state) => state.form[FORM_NAME.DHCP_INTERFACES]?.values?.interface_name , (state) => state.form[FORM_NAME.DHCP_INTERFACES]?.values?.interface_name ,
); );
const [ipv4placeholders, setIpv4Placeholders] = useState(DHCP_DESCRIPTION_PL ACEHOLDERS.ipv4); const [ipv4placeholders, setIpv4Placeholders] = useState(DHCP_DESCRIPTION_PL ACEHOLDERS.ipv4);
const [ipv6placeholders, setIpv6Placeholders] = useState(DHCP_DESCRIPTION_PL ACEHOLDERS.ipv6); const [ipv6placeholders, setIpv6Placeholders] = useState(DHCP_DESCRIPTION_PL ACEHOLDERS.ipv6);
useEffect(() => { useEffect(() => {
dispatch(getDhcpStatus()); dispatch(getDhcpStatus());
dispatch(getDhcpInterfaces());
}, []); }, []);
useEffect(() => { useEffect(() => {
if (dhcp_available) {
dispatch(getDhcpInterfaces());
}
}, [dhcp_available]);
useEffect(() => {
const [ipv4] = interfaces?.[interface_name]?.ipv4_addresses ?? []; const [ipv4] = interfaces?.[interface_name]?.ipv4_addresses ?? [];
const [ipv6] = interfaces?.[interface_name]?.ipv6_addresses ?? []; const [ipv6] = interfaces?.[interface_name]?.ipv6_addresses ?? [];
const gateway_ip = interfaces?.[interface_name]?.gateway_ip; const gateway_ip = interfaces?.[interface_name]?.gateway_ip;
const v4placeholders = ipv4 const v4placeholders = ipv4
? calculateDhcpPlaceholdersIpv4(ipv4, gateway_ip) ? calculateDhcpPlaceholdersIpv4(ipv4, gateway_ip)
: DHCP_DESCRIPTION_PLACEHOLDERS.ipv4; : DHCP_DESCRIPTION_PLACEHOLDERS.ipv4;
const v6placeholders = ipv6 const v6placeholders = ipv6
? calculateDhcpPlaceholdersIpv6() ? calculateDhcpPlaceholdersIpv6()
 End of changes. 2 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)