v2ray-core/proxy/socks/socksfactory.go

17 lines
343 B
Go
Raw Normal View History

2015-09-10 22:24:18 +00:00
package socks
import (
"github.com/v2ray/v2ray-core"
)
type SocksServerFactory struct {
}
2015-09-12 20:11:54 +00:00
func (factory SocksServerFactory) Create(vp *core.Point, config []byte) (core.InboundConnectionHandler, error) {
2015-09-12 09:51:42 +00:00
return NewSocksServer(vp, config), nil
2015-09-10 22:24:18 +00:00
}
2015-09-12 18:36:21 +00:00
func init() {
core.RegisterInboundConnectionHandlerFactory("socks", SocksServerFactory{})
}