mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-15 18:08:30 -07:00
Pull request: replace empty string with load_balance for upstream_mode
Squashed commit of the following: commit 69d23105ce68e61132f2eb6571deb41fad25efbf Merge:76df04027
58b47adaf
Author: Ildar Kamalov <ik@adguard.com> Date: Tue Jan 16 12:22:52 2024 +0300 Merge branch 'master' into ADG-7965 commit76df04027f
Author: Ildar Kamalov <ik@adguard.com> Date: Fri Jan 12 13:18:21 2024 +0300 remove changelog commite79b7bffdd
Merge:df0f18929
1e0ff4d43
Author: Ildar Kamalov <ik@adguard.com> Date: Fri Jan 12 13:17:50 2024 +0300 Merge branch 'master' into ADG-7965 commitdf0f18929f
Author: Ildar Kamalov <ik@adguard.com> Date: Wed Jan 10 19:21:34 2024 +0300 fix changelog commit814308708d
Author: Ildar Kamalov <ik@adguard.com> Date: Wed Jan 10 18:04:24 2024 +0300 handle empty string commite9e672cd99
Author: Ildar Kamalov <ik@adguard.com> Date: Tue Jan 9 16:15:02 2024 +0300 changelog commit34fb9b71e8
Author: Ildar Kamalov <ik@adguard.com> Date: Tue Jan 9 13:23:09 2024 +0300 ADG-7965 replace empty string with load_balance for upstream_mode
This commit is contained in:
parent
58b47adaff
commit
f7995aa022
@ -436,7 +436,7 @@ export const SCHEME_TO_PROTOCOL_MAP = {
|
|||||||
export const DNS_REQUEST_OPTIONS = {
|
export const DNS_REQUEST_OPTIONS = {
|
||||||
PARALLEL: 'parallel',
|
PARALLEL: 'parallel',
|
||||||
FASTEST_ADDR: 'fastest_addr',
|
FASTEST_ADDR: 'fastest_addr',
|
||||||
LOAD_BALANCING: '',
|
LOAD_BALANCING: 'load_balance',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DHCP_FORM_NAMES = {
|
export const DHCP_FORM_NAMES = {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { handleActions } from 'redux-actions';
|
import { handleActions } from 'redux-actions';
|
||||||
|
|
||||||
import * as actions from '../actions/dnsConfig';
|
import * as actions from '../actions/dnsConfig';
|
||||||
import { ALL_INTERFACES_IP, BLOCKING_MODES } from '../helpers/constants';
|
import { ALL_INTERFACES_IP, BLOCKING_MODES, DNS_REQUEST_OPTIONS } from '../helpers/constants';
|
||||||
|
|
||||||
const DEFAULT_BLOCKING_IPV4 = ALL_INTERFACES_IP;
|
const DEFAULT_BLOCKING_IPV4 = ALL_INTERFACES_IP;
|
||||||
const DEFAULT_BLOCKING_IPV6 = '::';
|
const DEFAULT_BLOCKING_IPV6 = '::';
|
||||||
@ -15,6 +15,7 @@ const dnsConfig = handleActions(
|
|||||||
blocking_ipv4,
|
blocking_ipv4,
|
||||||
blocking_ipv6,
|
blocking_ipv6,
|
||||||
upstream_dns,
|
upstream_dns,
|
||||||
|
upstream_mode,
|
||||||
fallback_dns,
|
fallback_dns,
|
||||||
bootstrap_dns,
|
bootstrap_dns,
|
||||||
local_ptr_upstreams,
|
local_ptr_upstreams,
|
||||||
@ -33,6 +34,7 @@ const dnsConfig = handleActions(
|
|||||||
local_ptr_upstreams: (local_ptr_upstreams && local_ptr_upstreams.join('\n')) || '',
|
local_ptr_upstreams: (local_ptr_upstreams && local_ptr_upstreams.join('\n')) || '',
|
||||||
ratelimit_whitelist: (ratelimit_whitelist && ratelimit_whitelist.join('\n')) || '',
|
ratelimit_whitelist: (ratelimit_whitelist && ratelimit_whitelist.join('\n')) || '',
|
||||||
processingGetConfig: false,
|
processingGetConfig: false,
|
||||||
|
upstream_mode: upstream_mode === '' ? DNS_REQUEST_OPTIONS.LOAD_BALANCING : upstream_mode,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user