Don't hardcoded localhost for redis

- It breaks the *nix clients
This commit is contained in:
David Fowler 2016-11-09 02:06:06 -08:00
parent 812bffe6d0
commit 48b869f026
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}