Files
nDPI/utils/google_ip_addresses_download.sh
T
Toni f646a4bce0 Improved ASN/IP update scripts and CI integration. (#1474)
* CI will print a warning if ASN/IP addresses changed.

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2022-03-09 13:53:04 +01:00

21 lines
436 B
Bash
Executable File

#!/bin/sh
set -e
cd "$(dirname "${0}")" || return
DEST=../src/lib/ndpi_google_match.c.inc
LIST=/tmp/google.list
echo "(1) Downloading file..."
#Nothing to do
echo "(2) Processing IP addresses..."
#https://cloud.google.com/vpc/docs/configure-private-google-access#ip-addr-defaults
python3 google.py > $LIST
./ipaddr2list.py $LIST NDPI_PROTOCOL_GOOGLE > $DEST
#rm -f $TMP $LIST
echo "(3) Google IPs are available in $DEST"
return 0