2015-10-30 15:56:46 +01:00
|
|
|
package dokodemo
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/v2ray/v2ray-core/app"
|
2016-01-02 23:32:18 +01:00
|
|
|
"github.com/v2ray/v2ray-core/proxy"
|
2016-01-02 23:08:36 +01:00
|
|
|
"github.com/v2ray/v2ray-core/proxy/internal"
|
2015-10-30 15:56:46 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2016-01-06 16:23:54 +01:00
|
|
|
internal.MustRegisterInboundConnectionHandlerCreator("dokodemo-door",
|
2016-01-25 17:18:24 +01:00
|
|
|
func(space app.Space, rawConfig interface{}) (proxy.InboundHandler, error) {
|
2016-01-15 12:43:06 +01:00
|
|
|
config := rawConfig.(*Config)
|
2016-01-06 16:23:54 +01:00
|
|
|
return NewDokodemoDoor(space, config), nil
|
|
|
|
})
|
2015-10-30 15:56:46 +01:00
|
|
|
}
|