localhost can resolve to ::1 (fix #1)