mirror of
https://github.com/darkclip/netlist.git
synced 2026-11-12 07:45:29 +08:00
update
This commit is contained in:
1 parent
34c57fc295
commit
ce1a5023f5
1 file changed
+3
-2
+3
-2
@@ -38,8 +38,9 @@ loss=$(get_ping_loss $watch);
|
||||
while [ $loss -gt 35 ]; do
|
||||
cfip=$(cf_v4);
|
||||
echo "changing $dev endpoint to $cfip";
|
||||
wg set $dev peer "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=" endpoint "$cfip:4500" && \
|
||||
pfSsh.php playback chgwgpeer $conf $cfip 4500 || true;
|
||||
wg set $dev peer "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=" endpoint "$cfip:4500";
|
||||
endpoint=$(wg show $dev endpoints | awk '{print $2}');
|
||||
pfSsh.php playback chgwgpeer $conf $(echo $endpoint|awk -F: '{print $1}') $(echo $endpoint|awk -F: '{print $2}') || true;
|
||||
sleep 5;
|
||||
loss=$(get_ping_loss $watch);
|
||||
done;
|
||||
Reference in new issue
Block a user