repaired the wrong IP when using in localhost (Mac os x)

it returns “[“ when using beego in local host(Mac os x 10.9) , it
appears that Request.remoAddr returns “[::1]:****”