Skip to content

Commit 4a06071

Browse files
committed
Remove warning that address is not an IP address
1 parent be80287 commit 4a06071

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

Components/Pages/Settings.razor.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Blazored.LocalStorage;
2-
using CommunityToolkit.Maui.Storage;
1+
using CommunityToolkit.Maui.Storage;
32
using HavenoSharp.Services;
43
using HavenoSharp.Singletons;
54
using Manta.Helpers;
@@ -29,8 +28,6 @@ public partial class Settings : ComponentBase, IDisposable
2928
[Inject]
3029
public DaemonInfoSingleton DaemonInfoSingleton { get; set; } = default!;
3130
[Inject]
32-
public ILocalStorageService LocalStorage { get; set; } = default!;
33-
[Inject]
3431
public DaemonConnectionSingleton DaemonConnectionSingleton { get; set; } = default!;
3532
[Inject]
3633
public NotificationSingleton NotificationSingleton { get; set; } = default!;
@@ -96,8 +93,6 @@ public async Task ValidateUrl(string field)
9693
{
9794
try
9895
{
99-
// TODO update this to allow onion addresses
100-
10196
if (field == string.Empty)
10297
{
10398
IsMoneroNodeUrlInvalidReason = null;
@@ -122,13 +117,6 @@ public async Task ValidateUrl(string field)
122117
return;
123118
}
124119

125-
if (!IPAddress.TryParse(addressAndPort[0], out _))
126-
{
127-
//IsMoneroNodeUrlInvalidReason = "Please use an IP address or onion address and not a hostname.";
128-
IsMoneroNodeUrlInvalidReason = "Please use an IP address and not a domain name.";
129-
return;
130-
}
131-
132120
if (!int.TryParse(addressAndPort[1], out _))
133121
{
134122
IsMoneroNodeUrlInvalidReason = "Please include a valid port number.";

0 commit comments

Comments
 (0)