Skip to content

Commit

Permalink
Fix crash if unable to fetch network interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Kowalski7 committed Oct 10, 2024
1 parent 14b609c commit 6ed2c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion My IP Address/LocalAddressFetcher.vb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Public Class LocalAddressFetcher
End Function

Public Sub FetchData()
Dim NetworkInterfaces As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()
addresses = New Dictionary(Of String, List(Of List(Of String)))
Dim NetworkInterfaces As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()

For Each netadapter In NetworkInterfaces
Dim intproperties As IPInterfaceProperties = netadapter.GetIPProperties()
Expand Down
4 changes: 2 additions & 2 deletions My IP Address/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("3.0.1")>
<Assembly: AssemblyFileVersion("3.0.1")>
<Assembly: AssemblyVersion("3.0.2")>
<Assembly: AssemblyFileVersion("3.0.2")>

0 comments on commit 6ed2c71

Please sign in to comment.