mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Tightening of RPC code
This commit is contained in:
parent
608e059b18
commit
c488fa8461
18 changed files with 512 additions and 622 deletions
|
@ -31,8 +31,6 @@ echo '--- Up and running at' $virtip4 ' on network: ' $nwid
|
|||
echo '*** Writing address to ' "$address_file"
|
||||
echo $virtip4 > "$address_file"
|
||||
|
||||
export ZT_NC_NWID=$dev
|
||||
|
||||
# --- Test section ---
|
||||
# Generate large random file for transfer test, share md5sum for monitor container to check
|
||||
echo '*** Generating ' "$bigfile_size" ' file'
|
||||
|
@ -43,4 +41,7 @@ echo '*** Wrote MD5 sum to ' "$tx_md5sumfile"
|
|||
echo '*** Starting application...'
|
||||
sleep 0.5
|
||||
rm -rf /run/httpd/* /tmp/httpd*
|
||||
zerotier-intercept /usr/sbin/httpd -X
|
||||
|
||||
export ZT_NC_NETWORK=/var/lib/zerotier-one/nc_"$dev"
|
||||
export LD_PRELOAD=./libzerotierintercept.so
|
||||
/usr/sbin/httpd -X
|
||||
|
|
|
@ -31,8 +31,6 @@ echo '--- Up and running at' $virtip4 ' on network: ' $nwid
|
|||
echo '*** Writing address to ' "$address_file"
|
||||
echo $virtip4 > "$address_file"
|
||||
|
||||
export ZT_NC_NWID=$dev
|
||||
|
||||
# --- Test section ---
|
||||
# Generate large random file for transfer test, share md5sum for monitor container to check
|
||||
echo '*** Generating ' "$bigfile_size" ' file'
|
||||
|
@ -43,4 +41,7 @@ echo '*** Wrote MD5 sum to ' "$tx_md5sumfile"
|
|||
echo '*** Starting application...'
|
||||
sleep 0.5
|
||||
rm -rf /run/httpd/* /tmp/httpd*
|
||||
zerotier-intercept /usr/sbin/httpd -X
|
||||
|
||||
export ZT_NC_NETWORK=/var/lib/zerotier-one/nc_"$dev"
|
||||
export LD_PRELOAD=./libzerotierintercept.so
|
||||
/usr/sbin/httpd -X
|
||||
|
|
|
@ -32,8 +32,6 @@ echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
|||
echo '*** Writing address to ' "$address_file"
|
||||
echo $virtip4 > "$address_file"
|
||||
|
||||
export ZT_NC_NWID=$dev
|
||||
|
||||
# --- Test section ---
|
||||
# Generate large random file for transfer test, share md5sum for monitor container to check
|
||||
echo '*** Generating ' "$bigfile_size" ' file'
|
||||
|
@ -45,4 +43,7 @@ echo '*** Wrote MD5 sum to ' "$tx_md5sumfile"
|
|||
echo '*** Starting application...'
|
||||
sleep 0.5
|
||||
rm -rf /run/httpd/* /tmp/httpd*
|
||||
zerotier-intercept /usr/sbin/httpd -X
|
||||
|
||||
export ZT_NC_NETWORK=/var/lib/zerotier-one/nc_"$dev"
|
||||
export LD_PRELOAD=./libzerotierintercept.so
|
||||
/usr/sbin/httpd -X
|
||||
|
|
|
@ -32,8 +32,6 @@ echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
|||
echo '*** Writing address to ' "$address_file"
|
||||
echo $virtip4 > "$address_file"
|
||||
|
||||
export ZT_NC_NWID=$dev
|
||||
|
||||
# --- Test section ---
|
||||
cp -f nginx.conf_ /etc/nginx/nginx.conf
|
||||
nginx_html_path=/usr/share/nginx/html/
|
||||
|
@ -46,4 +44,7 @@ echo '*** Wrote MD5 sum to ' "$tx_md5sumfile"
|
|||
|
||||
echo '*** Starting application...'
|
||||
sleep 0.5
|
||||
zerotier-intercept nginx
|
||||
|
||||
export ZT_NC_NETWORK=/var/lib/zerotier-one/nc_"$dev"
|
||||
export LD_PRELOAD=./libzerotierintercept.so
|
||||
nginx
|
||||
|
|
|
@ -32,8 +32,6 @@ echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
|||
echo '*** Writing address to ' "$address_file"
|
||||
echo $virtip4 > "$address_file"
|
||||
|
||||
export ZT_NC_NWID=$dev
|
||||
|
||||
# --- Test section ---
|
||||
cp -f nginx.conf_ /etc/nginx/nginx.conf
|
||||
nginx_html_path=/usr/share/nginx/html/
|
||||
|
@ -46,4 +44,7 @@ echo '*** Wrote MD5 sum to ' "$tx_md5sumfile"
|
|||
|
||||
echo '*** Starting application...'
|
||||
sleep 0.5
|
||||
zerotier-intercept nginx
|
||||
|
||||
export ZT_NC_NETWORK=/var/lib/zerotier-one/nc_"$dev"
|
||||
export LD_PRELOAD=./libzerotierintercept.so
|
||||
nginx
|
||||
|
|
|
@ -32,8 +32,6 @@ echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
|||
echo '*** Writing address to ' "$address_file"
|
||||
echo $virtip4 > "$address_file"
|
||||
|
||||
export ZT_NC_NWID=$dev
|
||||
|
||||
# --- Test section ---
|
||||
cp -f nginx.conf_ /etc/nginx/nginx.conf
|
||||
nginx_html_path=/usr/share/nginx/html/
|
||||
|
@ -46,4 +44,7 @@ echo '*** Wrote MD5 sum to ' "$tx_md5sumfile"
|
|||
|
||||
echo '*** Starting application...'
|
||||
sleep 0.5
|
||||
zerotier-intercept nginx
|
||||
|
||||
export ZT_NC_NETWORK=/var/lib/zerotier-one/nc_"$dev"
|
||||
export LD_PRELOAD=./libzerotierintercept.so
|
||||
nginx
|
||||
|
|
|
@ -30,8 +30,7 @@ echo '*** Writing address to ' "$address_file"
|
|||
echo $virtip4 > "$address_file"
|
||||
|
||||
export ZT_NC_NETWORK=/var/lib/zerotier-one/nc_"$dev"
|
||||
echo $ZT_NC_NETWORK
|
||||
export LD_PRELOAD ./libzerotierintercept.so
|
||||
export LD_PRELOAD=./libzerotierintercept.so
|
||||
|
||||
# --- Test section ---
|
||||
echo '*** Starting application...'
|
||||
|
|
|
@ -29,9 +29,10 @@ echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
|||
echo '*** Writing address to ' "$address_file"
|
||||
echo $virtip4 > "$address_file"
|
||||
|
||||
export ZT_NC_NWID=$dev
|
||||
|
||||
# --- Test section ---
|
||||
echo '*** Starting application...'
|
||||
sleep 0.5
|
||||
zerotier-intercept /usr/bin/redis-server --port 6379
|
||||
|
||||
export ZT_NC_NETWORK=/var/lib/zerotier-one/nc_"$dev"
|
||||
export LD_PRELOAD=./libzerotierintercept.so
|
||||
/usr/bin/redis-server --port 6379
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue