1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-13 16:21:03 +00:00
add config ListenTCP4

when user want to listen on the TCP4, because now almost use the ipv4.
but default lister on the ipv6
This commit is contained in:
astaxie
2014-11-03 15:06:25 +08:00
parent 90cff5f042
commit 716962672f
3 changed files with 34 additions and 12 deletions

View File

@ -14,6 +14,11 @@
package beego
import "github.com/astaxie/beego/context"
// FilterFunc defines filter function type.
type FilterFunc func(*context.Context)
// FilterRouter defines filter operation before controller handler execution.
// it can match patterned url and do filter function when action arrives.
type FilterRouter struct {