v2ray-core/net/socks/socksfactory.go

13 lines
250 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 11:51:42 +02:00
func (factory SocksServerFactory) Create(vp *core.VPoint, config []byte) (core.InboundConnectionHandler, error) {
return NewSocksServer(vp, config), nil
2015-09-11 00:24:18 +02:00
}