mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-06-01 13:17:21 +02:00
Finalized v3.0.6 changes
- Updated geodb database - Updated custom header UI - Added tools for update acmedns and geodb
This commit is contained in:
parent
b00e302f6d
commit
1183b0ed55
@ -54,7 +54,7 @@ var (
|
|||||||
name = "Zoraxy"
|
name = "Zoraxy"
|
||||||
version = "3.0.6"
|
version = "3.0.6"
|
||||||
nodeUUID = "generic"
|
nodeUUID = "generic"
|
||||||
development = true //Set this to false to use embedded web fs
|
development = false //Set this to false to use embedded web fs
|
||||||
bootTime = time.Now().Unix()
|
bootTime = time.Now().Unix()
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -97,6 +97,7 @@
|
|||||||
$("#headerModeAdd").removeClass("active");
|
$("#headerModeAdd").removeClass("active");
|
||||||
$("#headerModeRemove").addClass("active");
|
$("#headerModeRemove").addClass("active");
|
||||||
$("#headerValue").parent().hide();
|
$("#headerValue").parent().hide();
|
||||||
|
$("#headerValue").val("");
|
||||||
});
|
});
|
||||||
|
|
||||||
//Bind events to header directions option
|
//Bind events to header directions option
|
||||||
|
10
tools/update_acmedns.sh
Normal file
10
tools/update_acmedns.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# /bin/sh
|
||||||
|
|
||||||
|
# Build the acmedns
|
||||||
|
echo "Building ACMEDNS"
|
||||||
|
cd ../tools/dns_challenge_update/code-gen
|
||||||
|
./update.sh
|
||||||
|
cd ../../../
|
||||||
|
|
||||||
|
cp ./tools/dns_challenge_update/code-gen/acmedns/acmedns.go ./src/mod/acme/acmedns/acmedns.go
|
||||||
|
cp ./tools/dns_challenge_update/code-gen/acmedns/providers.json ./src/mod/acme/acmedns/providers.json
|
34
tools/update_geodb.sh
Normal file
34
tools/update_geodb.sh
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
cd ../src/mod/geodb
|
||||||
|
|
||||||
|
# Delete the old csv files
|
||||||
|
rm geoipv4.csv
|
||||||
|
rm geoipv6.csv
|
||||||
|
|
||||||
|
echo "Updating geodb csv files"
|
||||||
|
|
||||||
|
echo "Downloading IPv4 database"
|
||||||
|
curl -f https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv4.csv -o geoipv4.csv
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Failed to download IPv4 database"
|
||||||
|
failed=true
|
||||||
|
else
|
||||||
|
echo "Successfully downloaded IPv4 database"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Downloading IPv6 database"
|
||||||
|
curl -f https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv6.csv -o geoipv6.csv
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Failed to download IPv6 database"
|
||||||
|
failed=true
|
||||||
|
else
|
||||||
|
echo "Successfully downloaded IPv6 database"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$failed" = true ]; then
|
||||||
|
echo "One or more downloads failed. Blocking exit..."
|
||||||
|
while :; do
|
||||||
|
read -p "Press [Ctrl+C] to exit..." input
|
||||||
|
done
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user