add LocalIPs() to detect ip
add TODO
add safemap copied from beego
add rescan IP address support