Skip to content

Commit ae59e5f

Browse files
fix(SwarmApi): white list is now a collection
1 parent d422e8a commit ae59e5f

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

src/CoreApi/SwarmApi.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,7 @@ public SwarmApi(IpfsEngine ipfs)
9797
var strings = addrs.Select(a => a.ToString());
9898
await ipfs.Config.SetAsync("Swarm.AddrFilters", JToken.FromObject(strings), cancel).ConfigureAwait(false);
9999

100-
var bag = new WhiteList<MultiAddress>();
101-
foreach (var a in addrs)
102-
{
103-
bag.Add(a);
104-
}
105-
(await ipfs.SwarmService.ConfigureAwait(false)).WhiteList = bag;
100+
(await ipfs.SwarmService.ConfigureAwait(false)).WhiteList.Remove(address);
106101

107102
return address;
108103
}

src/IpfsEngine.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
</PropertyGroup>
5151

5252
<ItemGroup>
53-
<PackageReference Include="Ipfs.Core" Version="0.53.1" />
53+
<PackageReference Include="Ipfs.Core" Version="0.54.0" />
5454
<PackageReference Include="Makaretu.Dns.Unicast" Version="0.11.1" />
5555
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
5656
<PackageReference Include="Nito.AsyncEx.Coordination" Version="5.0.0" />
57-
<PackageReference Include="PeerTalk" Version="0.15.0" />
57+
<PackageReference Include="PeerTalk" Version="0.16.0" />
5858
<PackageReference Include="PeterO.Cbor" Version="3.1.0" />
5959
<PackageReference Include="Portable.BouncyCastle" Version="1.8.5" />
6060
<PackageReference Include="protobuf-net" Version="2.4.0" />

0 commit comments

Comments
 (0)