Update Remote URI.

This commit is contained in:
2020-03-01 06:02:40 +00:00
parent d59d41a784
commit 18db5ed8a5
2 changed files with 8 additions and 3 deletions

View File

@@ -68,9 +68,14 @@ namespace Aaru.Devices
Error = false;
IsRemovable = false;
if(devicePath.StartsWith("dic://"))
if(devicePath.StartsWith("dic://") ||
devicePath.StartsWith("aaru://"))
{
devicePath = devicePath.Substring(6);
if(devicePath.StartsWith("dic://"))
devicePath = devicePath.Substring(6);
else
devicePath = devicePath.Substring(7);
string[] pieces = devicePath.Split('/');
string host = pieces[0];
devicePath = devicePath.Substring(host.Length);