mirror of https://github.com/dirtbags/moth.git
Make fire-ip accept v4 or v6 IPs
This commit is contained in:
parent
38886dbdaf
commit
49b360b71f
|
@ -4,7 +4,9 @@ action=$1; shift
|
|||
|
||||
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
|
||||
IP="10.0.0.$n/16"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue