Skip to content

Commit

Permalink
qzeleza#213 *_dns_routing: корректный trim
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGrF13 authored and AltGrF13 committed Nov 17, 2024
1 parent 48879fa commit f28df11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opt/etc/ndm/ndm
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ get_ikev2_net_pool() {
#Example input param:-i sstp+
ip4_add_to_dns_routing() {
if [ -n "${1}" ]; then
local iptables_filter=$(echo "${1}" | tr -d ' ')
local iptables_filter=$(echo "${1}" | xargs)
local submessage=" по критерию ${iptables_filter}"
iptables_filter=" ${iptables_filter}"
else
Expand Down Expand Up @@ -739,7 +739,7 @@ ikev2_net_access_add() {
#Example input param:-i sstp+
ip4_delete_from_dns_routing() {
if [ -n "${1}" ]; then
local iptables_filter=$(echo "${1}" | tr -d ' ')
local iptables_filter=$(echo "${1}" | xargs)
local submessage=" по критерию ${iptables_filter}"
iptables_filter=" ${iptables_filter}"
else
Expand Down

0 comments on commit f28df11

Please sign in to comment.