Skip to content

Commit

Permalink
client: private_upstream test
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov committed Apr 6, 2021
1 parent a0194ac commit 493e81d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,15 @@ export const testUpstreamFailure = createAction('TEST_UPSTREAM_FAILURE');
export const testUpstreamSuccess = createAction('TEST_UPSTREAM_SUCCESS');

export const testUpstream = (
{ bootstrap_dns, upstream_dns }, upstream_dns_file,
{ bootstrap_dns, upstream_dns, local_ptr_upstreams }, upstream_dns_file,
) => async (dispatch) => {
dispatch(testUpstreamRequest());
try {
const removeComments = compose(filterOutComments, splitByNewLine);

const config = {
bootstrap_dns: splitByNewLine(bootstrap_dns),
private_upstream: splitByNewLine(local_ptr_upstreams),
...(upstream_dns_file ? null : {
upstream_dns: removeComments(upstream_dns),
}),
Expand Down

0 comments on commit 493e81d

Please sign in to comment.