mirror of https://github.com/dirtbags/moth.git
Make fire-ip accept v4 or v6 IPs
This commit is contained in:
parent
671747540e
commit
81b27d8ba6
|
@ -4,7 +4,9 @@ action=$1; shift
|
||||||
|
|
||||||
read n < ip.txt
|
read n < ip.txt
|
||||||
|
|
||||||
if grep -q ipv4 /proc/cmdline; then
|
if grep -q '/' ip.txt; then
|
||||||
|
IP=$n
|
||||||
|
elif grep -q ipv4 /proc/cmdline; then
|
||||||
# IPv4
|
# IPv4
|
||||||
IP="10.0.0.$n/16"
|
IP="10.0.0.$n/16"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue