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