File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 2
2
// SPDX-License-Identifier: MIT
3
3
4
4
using System ;
5
+ using System . Net ;
5
6
using System . Threading ;
6
7
7
8
using Microsoft . Extensions . DependencyInjection ;
54
55
) ;
55
56
56
57
// Create LocalNode
57
- await using var node = new LocalNode (
58
+ await using var node = LocalNode . Create (
58
59
plugins : plugins ,
59
- hostName : NodeHostName ,
60
60
port : NodePort ,
61
+ hostName : NodeHostName ,
62
+ addressListAllowFrom : [ IPAddress . Loopback , IPAddress . IPv6Loopback ] ,
61
63
serviceProvider : services . BuildServiceProvider ( )
62
64
) ;
63
65
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ SPDX-License-Identifier: MIT
5
5
<Project Sdk =" Microsoft.NET.Sdk" >
6
6
<PropertyGroup >
7
7
<OutputType >Exe</OutputType >
8
- <TargetFramework >net6 .0</TargetFramework >
8
+ <TargetFramework >net8 .0</TargetFramework >
9
9
</PropertyGroup >
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 6 .0.0" />
12
- <PackageReference Include =" Smdn.Net.MuninNode" Version =" 1.2 .0" />
11
+ <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 8 .0.0" />
12
+ <PackageReference Include =" Smdn.Net.MuninNode" Version =" 2.0 .0" />
13
13
</ItemGroup >
14
14
</Project >
Original file line number Diff line number Diff line change 2
2
// SPDX-License-Identifier: MIT
3
3
4
4
using System ;
5
+ using System . Net ;
5
6
using System . Threading ;
6
7
7
8
using Microsoft . Extensions . DependencyInjection ;
43
44
. AddFilter ( static level => LogLevel . Trace <= level )
44
45
) ;
45
46
46
- await using var node = new LocalNode (
47
+ await using var node = LocalNode . Create (
47
48
plugins : plugins ,
48
- hostName : NodeHostName ,
49
49
port : NodePort ,
50
+ hostName : NodeHostName ,
51
+ addressListAllowFrom : [ IPAddress . Loopback , IPAddress . IPv6Loopback ] ,
50
52
serviceProvider : services . BuildServiceProvider ( )
51
53
) ;
52
54
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ SPDX-License-Identifier: MIT
5
5
<Project Sdk =" Microsoft.NET.Sdk" >
6
6
<PropertyGroup >
7
7
<OutputType >Exe</OutputType >
8
- <TargetFramework >net6 .0</TargetFramework >
8
+ <TargetFramework >net8 .0</TargetFramework >
9
9
</PropertyGroup >
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 6 .0.0" />
12
- <PackageReference Include =" Smdn.Net.MuninNode" Version =" 1.2 .0" />
11
+ <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 8 .0.0" />
12
+ <PackageReference Include =" Smdn.Net.MuninNode" Version =" 2.0 .0" />
13
13
</ItemGroup >
14
14
</Project >
You can’t perform that action at this time.
0 commit comments