1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00
v2fly/net/socks/socksfactory.go

17 lines
343 B
Go
Raw Normal View History

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