mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-09 03:00:41 +03:00
Merge PR #1236: wait for vpnserver to listen localhost:443 in live tests
This commit is contained in:
commit
16ca0694fb
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
@ -8,6 +8,30 @@ cd $BUILD_BINARIESDIRECTORY
|
|||||||
|
|
||||||
./vpnserver start
|
./vpnserver start
|
||||||
|
|
||||||
|
#
|
||||||
|
# wait until server listen 443
|
||||||
|
#
|
||||||
|
set +e
|
||||||
|
started="false"
|
||||||
|
for i in 1 2 3 4 5 6
|
||||||
|
do
|
||||||
|
s=$(echo exit | telnet 127.0.0.1 443 | grep "Connected")
|
||||||
|
if [ "$s" != "" ]
|
||||||
|
then
|
||||||
|
started="true"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$started" == "false" ]
|
||||||
|
then
|
||||||
|
echo "vpnserver is not listening 127.0.0.1:443"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
./vpncmd 127.0.0.1:443 /SERVER /HUB:DEFAULT /CMD:SecureNatEnable
|
./vpncmd 127.0.0.1:443 /SERVER /HUB:DEFAULT /CMD:SecureNatEnable
|
||||||
./vpncmd 127.0.0.1:443 /SERVER /CMD:"ProtoOptionsSet OpenVPN /NAME:Enabled /VALUE:True"
|
./vpncmd 127.0.0.1:443 /SERVER /CMD:"ProtoOptionsSet OpenVPN /NAME:Enabled /VALUE:True"
|
||||||
./vpncmd 127.0.0.1:443 /SERVER /CMD:"PortsUDPSet 1194"
|
./vpncmd 127.0.0.1:443 /SERVER /CMD:"PortsUDPSet 1194"
|
||||||
|
Loading…
Reference in New Issue
Block a user