mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-28 12:35:40 +01:00
PM-9020 Fix SetUrls in ApiService to only add the suffix on SelfHosted regions
This commit is contained in:
parent
9edcc8b4f7
commit
cb76755973
@ -58,7 +58,7 @@ namespace Bit.Core.Services
|
||||
public void SetUrls(EnvironmentUrlData urls)
|
||||
{
|
||||
UrlsSet = true;
|
||||
if (!string.IsNullOrWhiteSpace(urls.Base))
|
||||
if (urls?.Region == Enums.Region.SelfHosted && !string.IsNullOrWhiteSpace(urls.Base))
|
||||
{
|
||||
ApiBaseUrl = urls.Base + "/api";
|
||||
IdentityBaseUrl = urls.Base + "/identity";
|
||||
|
Loading…
Reference in New Issue
Block a user