Notify: fix

This commit is contained in:
pavelbannov 2020-10-30 20:51:01 +03:00
parent 6cdab3daca
commit 1278b2abb5

View File

@ -76,7 +76,7 @@ namespace ASC.Core.Common
if (!string.IsNullOrEmpty(serverUri))
{
var uri = new Uri(serverUri.Replace('*', 'x').Replace('+', 'x'));
_serverRoot = new UriBuilder(uri.Scheme, LOCALHOST, uri.Port);
_serverRoot = new UriBuilder(uri.Scheme, uri.Host != "x" ? uri.Host : LOCALHOST, uri.Port);
_vpath = "/" + uri.AbsolutePath.Trim('/');
}
else