1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-25 10:59:53 +03:00

openvpn live tests: change "remote" inplace

command line override is not very stable
This commit is contained in:
Ilya Shipitsin 2021-08-30 09:46:45 +05:00
parent 3cc85c1d51
commit 115b8aab82

View File

@ -21,7 +21,7 @@ cat << EOF > tests/t_client.rc
CA_CERT=fake CA_CERT=fake
TEST_RUN_LIST="1 2" TEST_RUN_LIST="1 2"
OPENVPN_BASE="--remote 127.0.0.1 --config $CONFIG --auth-user-pass /tmp/auth.txt" OPENVPN_BASE="--config $CONFIG --auth-user-pass /tmp/auth.txt"
RUN_TITLE_1="testing udp/ipv4" RUN_TITLE_1="testing udp/ipv4"
OPENVPN_CONF_1="--dev null --proto udp --port 1194 \$OPENVPN_BASE" OPENVPN_CONF_1="--dev null --proto udp --port 1194 \$OPENVPN_BASE"
@ -30,4 +30,6 @@ RUN_TITLE_2="testing tcp/ipv4"
OPENVPN_CONF_2="--dev null --proto tcp --port 1194 \$OPENVPN_BASE" OPENVPN_CONF_2="--dev null --proto tcp --port 1194 \$OPENVPN_BASE"
EOF EOF
sed -i 's/^remote.*$/remote 127.0.0.1 1194/g' /tmp/*l3*ovpn
make test_scripts=t_client.sh check make test_scripts=t_client.sh check