File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using Blazored . LocalStorage ;
2- using CommunityToolkit . Maui . Storage ;
1+ using CommunityToolkit . Maui . Storage ;
32using HavenoSharp . Services ;
43using HavenoSharp . Singletons ;
54using 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." ;
You can’t perform that action at this time.
0 commit comments