e18b9f03 by astaxie

Merge pull request #399 from Max-Liu/master

repaired the wrong IP when using in localhost (Mac os x)
2 parents 3f0e55de b08a4a86
......@@ -98,8 +98,10 @@ func (input *BeegoInput) IP() string {
}
ip := strings.Split(input.Request.RemoteAddr, ":")
if len(ip) > 0 {
if ip[0] != "["{
return ip[0]
}
}
return "127.0.0.1"
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!