mirror of
https://github.com/darkclip/netlist.git
synced 2026-12-01 22:48:42 +08:00
update
This commit is contained in:
1 parent
f6ef87a6d5
commit
bbfcb1eb7f
3 files changed
+3
-3
No files matched your search
@@ -80,7 +80,7 @@ jobs:
|
|||||||
./netgen.py ref1/china6.txt -o target/wgcf-down.sh -p 'ip route del ' -s ' dev eth0 via fe80::6a77:24ff:fed6:809d || true'
|
./netgen.py ref1/china6.txt -o target/wgcf-down.sh -p 'ip route del ' -s ' dev eth0 via fe80::6a77:24ff:fed6:809d || true'
|
||||||
./netgen.py private4.txt -o target/wgcf-down.sh -p 'ip route del ' -s ' dev eth0 via 10.11.0.1 || true'
|
./netgen.py private4.txt -o target/wgcf-down.sh -p 'ip route del ' -s ' dev eth0 via 10.11.0.1 || true'
|
||||||
./netgen.py private6.txt -o target/wgcf-down.sh -p 'ip route del ' -s ' dev eth0 via fe80::6a77:24ff:fed6:809d || true'
|
./netgen.py private6.txt -o target/wgcf-down.sh -p 'ip route del ' -s ' dev eth0 via fe80::6a77:24ff:fed6:809d || true'
|
||||||
cp cf-watch.sh target/
|
cp wg-watch.sh target/
|
||||||
cd target
|
cd target
|
||||||
chmod +x *.sh
|
chmod +x *.sh
|
||||||
tar -cf sha.tar *.sh
|
tar -cf sha.tar *.sh
|
||||||
|
|||||||
@@ -206,8 +206,8 @@ main(){
|
|||||||
fi;
|
fi;
|
||||||
endpoint=$(wg show $INTERFACE endpoints | awk '{print $2}');
|
endpoint=$(wg show $INTERFACE endpoints | awk '{print $2}');
|
||||||
if [ "$(uname -i)" = 'pfSense' ]; then
|
if [ "$(uname -i)" = 'pfSense' ]; then
|
||||||
if [ $(pfSsh.php playback chgwgpeer $CONFIG) != $endpoint ]; then
|
if [ $(pfSsh.php playback wgpeer $CONFIG) != $endpoint ]; then
|
||||||
pfSsh.php playback chgwgpeer $CONFIG $(echo $endpoint|awk -F: '{print $1}') $(echo $endpoint|awk -F: '{print $2}') || true;
|
pfSsh.php playback wgpeer $CONFIG $(echo $endpoint|awk -F: '{print $1}') $(echo $endpoint|awk -F: '{print $2}') || true;
|
||||||
fi;
|
fi;
|
||||||
else
|
else
|
||||||
sed -i -r 's/Endpoint =.*/Endpoint = '$endpoint'/' $CONFIG
|
sed -i -r 's/Endpoint =.*/Endpoint = '$endpoint'/' $CONFIG
|
||||||
File renamed without changes.
Reference in new issue
Block a user