if ifdata -e wlan0 && [[ $(cat /sys/class/net/wlan0/operstate) == up ]]; then
	ifdata -pa wlan0

else
	ifdata -pa lan

fi

curl http://ifconfig.me/ip
curl http://ifconfig.me/host