From cc2f69cc2462176a447aa79d153ea28c9082db2b Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 27 Nov 2022 14:14:08 +0100 Subject: [PATCH] Unify ip script to run the entire task --- ipv6.sh | 4 ---- set_ip.sh | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 ipv6.sh create mode 100644 set_ip.sh diff --git a/ipv6.sh b/ipv6.sh deleted file mode 100644 index ff1a634..0000000 --- a/ipv6.sh +++ /dev/null @@ -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 diff --git a/set_ip.sh b/set_ip.sh new file mode 100644 index 0000000..037bdf4 --- /dev/null +++ b/set_ip.sh @@ -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"