1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-26 03:51:09 -05:00

set base admin path for self host

This commit is contained in:
Kyle Spearrin
2018-03-23 23:27:33 -04:00
parent 73a4af3f17
commit 997839a2c7
2 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,7 @@ using Bit.Core;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using System.Linq;
namespace Bit.Admin.Controllers
{
@ -52,7 +53,7 @@ namespace Bit.Admin.Controllers
foreach(var result in results)
{
var name = result["name"].ToString();
if(name != "latest" && name != "beta")
if(name.Count(c => c == '.') > 2)
{
return new JsonResult(name);
}