🐛 Fix websocket create rpc
This commit is contained in:
@@ -155,7 +155,7 @@ public class WebSocketService
|
|||||||
}
|
}
|
||||||
catch (RpcException ex)
|
catch (RpcException ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, $"Error forwarding packet to endpoint: {packet.Endpoint}");
|
_logger.LogError(ex, $"Error forwarding packet to endpoint: {packet.Endpoint} (${endpoint})");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@@ -9,6 +9,10 @@ public static class GrpcClientHelper
|
|||||||
{
|
{
|
||||||
public static CallInvoker CreateCallInvoker(string url)
|
public static CallInvoker CreateCallInvoker(string url)
|
||||||
{
|
{
|
||||||
return GrpcChannel.ForAddress(url).CreateCallInvoker();
|
return GrpcChannel.ForAddress(url, new GrpcChannelOptions
|
||||||
|
{
|
||||||
|
HttpHandler = new HttpClientHandler()
|
||||||
|
{ ServerCertificateCustomValidationCallback = (_, _, _, _) => true },
|
||||||
|
}).CreateCallInvoker();
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user