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]:****”
Merge pull request #399 from Max-Liu/master

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