File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
fast cf ip scanner/Services Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace fast_cf_ip_scanner.Services
1212{
1313 public class IPServices
1414 {
15- List < string > ipAddresses = new List < string > ( ) ;
15+ List < string > IpAddresses = new List < string > ( ) ;
1616 public IPServices ( )
1717 {
1818
@@ -21,14 +21,14 @@ public IPServices()
2121
2222 public async Task < List < IPModel > > GetIpValid ( int maxPing )
2323 {
24- if ( ipAddresses . Count == 0 )
24+ if ( IpAddresses . Count == 0 )
2525 {
2626 using var stream = await FileSystem . OpenAppPackageFileAsync ( "IPAddresses.txt" ) ;
2727 using var reader = new StreamReader ( stream ) ;
2828 string line ;
2929 while ( ( line = await reader . ReadLineAsync ( ) ) != null )
3030 {
31- ipAddresses . Add ( line ) ;
31+ IpAddresses . Add ( line ) ;
3232 }
3333 }
3434 SocketsHttpHandler SocketsHandler = new SocketsHttpHandler ( ) ;
@@ -85,7 +85,7 @@ string GetRandomIp()
8585 {
8686 // var path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"IPAddresses.txt");
8787 Random random = new Random ( ) ;
88- return ipAddresses [ random . Next ( ipAddresses . Count ) ] ;
88+ return IpAddresses [ random . Next ( IpAddresses . Count ) ] ;
8989 }
9090 }
9191}
You can’t perform that action at this time.
0 commit comments