mirror of https://github.com/v2ray/v2ray-core
Type switch for UnixReceiver
parent
b9dddd0586
commit
7afd26a78f
|
@ -143,6 +143,10 @@ func NewHandler(ctx context.Context, config *core.InboundHandlerConfig) (core.In
|
||||||
return nil, newError("unknown allocation strategy: ", receiverSettings.AllocationStrategy.Type).AtError()
|
return nil, newError("unknown allocation strategy: ", receiverSettings.AllocationStrategy.Type).AtError()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *Manager) asUnixReceiverConfig(ctx context.Context, config *core.InboundHandlerConfig) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
common.Must(common.RegisterConfig((*proxyman.InboundConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
common.Must(common.RegisterConfig((*proxyman.InboundConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
||||||
return New(ctx, config.(*proxyman.InboundConfig))
|
return New(ctx, config.(*proxyman.InboundConfig))
|
||||||
|
|
Loading…
Reference in New Issue