Unify ip script to run the entire task

This commit is contained in:
Neshura 2022-11-27 14:14:08 +01:00
parent e987149ecc
commit cc2f69cc24
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +0,0 @@
#!/bin/bash
raw=$(curl -k -s https://ipv6.am.i.mullvad.net/)
full=$(/home/server/Scripts/expand6.sh $raw)
echo $full

5
set_ip.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
ipv4=$(curl -k -s https://am.i.mullvad.net/ip)
ipv6=$(curl -k -s https://ipv6.am.i.mullvad.net/)
python3 ./cloudflare_script.py 4 "$ipv4"
python3 ./cloudflare_script.py 6 "$ipv6"