Unify ip script to run the entire task
This commit is contained in:
parent
e987149ecc
commit
cc2f69cc24
2 changed files with 5 additions and 4 deletions
4
ipv6.sh
4
ipv6.sh
|
@ -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
5
set_ip.sh
Normal 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"
|
Loading…
Reference in a new issue