From 2c86df3c3216bffecd3ed5a702fbc64e4549e194 Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Thu, 18 Jun 2020 13:16:52 +0200 Subject: fix passing of a shell variable, that can contain spaces --- src/vpn_wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vpn_wrapper.sh b/src/vpn_wrapper.sh index 6aa4fd2..6540e65 100755 --- a/src/vpn_wrapper.sh +++ b/src/vpn_wrapper.sh @@ -55,7 +55,7 @@ $OVPN_COMMAND --ifconfig-noexec --route-noexec --up $NETNS_SCRIPT \ --setenv WRAPPER_PID $$ \ --setenv VETH_HOST0 $VETH_HOST0 \ --setenv VETH_HOST1 $VETH_HOST1 \ - --setenv ROUTE_THROUGH_VETH $ROUTE_THROUGH_VETH\ $DEFAULT_DNS/32 \ + --setenv ROUTE_THROUGH_VETH "$ROUTE_THROUGH_VETH"\ $DEFAULT_DNS/32 \ --setenv PHYSICAL_IP $PHYSICAL_IP & OPENVPN_PID=$! -- cgit v1.2.3