服务器获取内网、外网IP
外网IP
export PUBLIC_IP=$(curl -Ls http://ipv4.rehi.org/ip)
export PUBLIC_IP=$(curl -Ls http://ifconfig.me/ip)
内网IP
export PRIVATE_IP=$(ip -o -4 addr list | grep eth0 | awk '{print $4}' | cut -d/ -f1)
https://discuss.plugins-world.cn/post/AyaFGviO