a few scripts
This commit is contained in:
4
utils/get-public-network-interface.sh
Normal file
4
utils/get-public-network-interface.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
ip addr | awk -v ip="$(curl -s ipinfo.io/ip)" '$1 == "inet" && $2 ~ "^" ip "/" {print $NF}'
|
||||
Reference in New Issue
Block a user