From 48b869f0262cf347eebbc6ea3e0c8a25d51c523e Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 9 Nov 2016 02:06:06 -0800 Subject: [PATCH] Don't hardcoded localhost for redis - It breaks the *nix clients --- src/Microsoft.AspNetCore.SignalR.Redis/RedisOptions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.SignalR.Redis/RedisOptions.cs b/src/Microsoft.AspNetCore.SignalR.Redis/RedisOptions.cs index c52132339d..d578e4b539 100644 --- a/src/Microsoft.AspNetCore.SignalR.Redis/RedisOptions.cs +++ b/src/Microsoft.AspNetCore.SignalR.Redis/RedisOptions.cs @@ -3,6 +3,7 @@ using System; using System.IO; +using System.Net; using StackExchange.Redis; namespace Microsoft.AspNetCore.SignalR.Redis @@ -21,7 +22,8 @@ namespace Microsoft.AspNetCore.SignalR.Redis // REVIEW: Should we do this? if (Options.EndPoints.Count == 0) { - Options.EndPoints.Add("localhost"); + Options.EndPoints.Add(IPAddress.Loopback, 0); + Options.SetDefaultPorts(); } return ConnectionMultiplexer.Connect(Options, log); }