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{})
|
|
|
|
}
|