Add gun-lite gRPC implementation (#44)

This commit is contained in:
Hellojack
2022-08-27 21:05:15 +08:00
committed by GitHub
parent d59d40c118
commit de2453fce9
9 changed files with 418 additions and 15 deletions

View File

@@ -29,7 +29,7 @@ func NewServerTransport(ctx context.Context, options option.V2RayTransportOption
}
return NewQUICServer(ctx, options.QUICOptions, tlsConfig, handler, errorHandler)
case C.V2RayTransportTypeGRPC:
return NewGRPCServer(ctx, options.GRPCOptions, tlsConfig, handler)
return NewGRPCServer(ctx, options.GRPCOptions, tlsConfig, handler, errorHandler)
default:
return nil, E.New("unknown transport type: " + options.Type)
}