1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-31 05:37:43 -05:00
v2fly/proxy/dokodemo/dokodemo_factory.go

19 lines
472 B
Go
Raw Normal View History

2015-10-30 10:56:46 -04:00
package dokodemo
import (
"github.com/v2ray/v2ray-core/app"
"github.com/v2ray/v2ray-core/proxy/common/connhandler"
)
type DokodemoDoorFactory struct {
}
2015-12-05 16:55:45 -05:00
func (this DokodemoDoorFactory) Create(space *app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
2015-12-06 12:21:15 -05:00
config := rawConfig.(Config)
2015-12-05 16:55:45 -05:00
return NewDokodemoDoor(space, config), nil
2015-10-30 10:56:46 -04:00
}
func init() {
connhandler.RegisterInboundConnectionHandlerFactory("dokodemo-door", DokodemoDoorFactory{})
}