diff --git a/src/neo/Network/P2P/LocalNode.cs b/src/neo/Network/P2P/LocalNode.cs index c7f0e472e7..f7b9093134 100644 --- a/src/neo/Network/P2P/LocalNode.cs +++ b/src/neo/Network/P2P/LocalNode.cs @@ -59,11 +59,11 @@ public LocalNode(NeoSystem system) singleton = this; // Start dns resolution in parallel - - for (int i = 0; i < ProtocolSettings.Default.SeedList.Length; i++) + string[] seedList = ProtocolSettings.Default.SeedList; + for (int i = 0; i < seedList.Length; i++) { int index = i; - Task.Run(() => SeedList[index] = GetIpEndPoint(ProtocolSettings.Default.SeedList[index])); + Task.Run(() => SeedList[index] = GetIpEndPoint(seedList[index])); } } }