Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
62351a2
Add and improve tests (#13)
xBaank Jan 14, 2026
6e6fcab
wip
xBaank Jan 14, 2026
e40a830
wip
xBaank Jan 14, 2026
b7cffbf
wip
xBaank Jan 14, 2026
a5f2d0f
wip
xBaank Jan 14, 2026
f8345f5
wip
xBaank Jan 14, 2026
375e2cd
wip
xBaank Jan 14, 2026
5dff639
wip
xBaank Jan 14, 2026
93a9080
Revert "wip"
xBaank Jan 14, 2026
e062a1c
Create dependabot.yml
xBaank Jan 14, 2026
d7c2f7d
wip
xBaank Jan 14, 2026
ab5665f
wip
xBaank Jan 14, 2026
fe4fb20
wip
xBaank Jan 14, 2026
3a6a730
wip
xBaank Jan 14, 2026
da8029e
wip
xBaank Jan 14, 2026
7bbd15b
wip
xBaank Jan 14, 2026
c921e42
wip
xBaank Jan 14, 2026
c45fd99
Merge branch 'master' into develop
xBaank Jan 14, 2026
b9648a7
wip
xBaank Jan 14, 2026
a488227
wip
xBaank Jan 14, 2026
ee36661
Bump CSharpier.MsBuild from 1.2.1 to 1.2.5 (#33)
dependabot[bot] Jan 14, 2026
41a8ebe
Bump Microsoft.Extensions.Logging.Abstractions from 10.0.1 to 10.0.2 …
dependabot[bot] Jan 14, 2026
3f8e6ca
Bump Microsoft.Extensions.Logging and Microsoft.Extensions.Logging.Co…
dependabot[bot] Jan 14, 2026
8d59c9c
Bump Testcontainers from 4.9.0 to 4.10.0 (#37)
dependabot[bot] Jan 14, 2026
d03f03f
Bump TUnit from 1.11.18 to 1.11.28 (#38)
dependabot[bot] Jan 14, 2026
8dbdcf1
Merge branch 'master' into develop
xBaank Jan 14, 2026
c9b5ff6
wip
xBaank Jan 14, 2026
f7ceea6
Bump actions/checkout from 4 to 6 (#40)
dependabot[bot] Jan 14, 2026
3e52df0
Bump actions/github-script from 7 to 8 (#41)
dependabot[bot] Jan 14, 2026
467725d
Bump actions/upload-artifact from 4 to 6 (#44)
dependabot[bot] Jan 14, 2026
3956226
Bump actions/setup-dotnet from 4 to 5 (#42)
dependabot[bot] Jan 14, 2026
4c6302e
Bump actions/download-artifact from 4 to 7 (#43)
dependabot[bot] Jan 14, 2026
3081979
wip
xBaank Jan 15, 2026
42013d6
Bump actions/cache from 4 to 5 (#45)
dependabot[bot] Jan 15, 2026
0ad161e
wip
xBaank Jan 15, 2026
d9d562d
wip
xBaank Jan 15, 2026
5718cbe
wip
xBaank Jan 16, 2026
f9f58f9
wip
xBaank Jan 16, 2026
c63904f
Bump TUnit from 1.11.28 to 1.11.45 (#48)
dependabot[bot] Jan 16, 2026
fd64006
Merge branch 'master' into develop
xBaank Jan 16, 2026
83701e3
Add ListenAddressIpv4 And ListenAddressIpv6 (#50)
xBaank Jan 18, 2026
fa19bd2
wip
xBaank Jan 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,35 @@
###############################################################################
* text=auto

# Explicitly declare text files to always use LF line endings (cross-platform standard)
*.cs text eol=lf
*.csproj text eol=lf
*.sln text eol=lf
*.csx text eol=lf
*.md text eol=lf
*.json text eol=lf
*.xml text eol=lf
*.config text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.gitattributes text eol=lf
*.gitignore text eol=lf

# Binary files that should never be modified
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.zip binary
*.rar binary
*.7z binary
*.exe binary
*.dll binary
*.so binary
*.dylib binary

###############################################################################
# Set default behavior for command prompt diff.
#
Expand Down
11 changes: 11 additions & 0 deletions Netorrent.Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ .. dirs.Select(d =>
{
var name = Path.GetFileName(d);
if (string.IsNullOrEmpty(name)) // root drive (e.g. "C:\")
{
name = d;
}
return $"(dir) {name}";
}),
"(select) Use this directory",
Expand Down Expand Up @@ -126,9 +128,15 @@ .. dirs.Select(d =>
new TextPrompt<string>("Enter new directory name:").Validate(n =>
{
if (string.IsNullOrWhiteSpace(n))
{
return ValidationResult.Error("[red]Name cannot be empty[/]");
}

if (n.IndexOfAny(Path.GetInvalidFileNameChars()) >= 0)
{
return ValidationResult.Error("[red]Name contains invalid characters[/]");
}

return ValidationResult.Success();
}),
cancellationToken
Expand Down Expand Up @@ -192,7 +200,10 @@ .. files.Select(t => $"(file) {t.Item2}"),
{
var parent = Directory.GetParent(current);
if (parent == null)
{
continue;
}

current = parent.FullName;
continue;
}
Expand Down
2 changes: 2 additions & 0 deletions Netorrent.Tests.Integration/Fixtures/OpenTrackerFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public async Task InitializeAsync()
public async ValueTask DisposeAsync()
{
if (_container is null)
{
return;
}

await _container.StopAsync();
await _container.DisposeAsync();
Expand Down
5 changes: 5 additions & 0 deletions Netorrent.Tests.Integration/Torrents/Hooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ public static Task Dispose(CancellationToken _)
private static void CleanDirectories()
{
if (Directory.Exists("Output"))
{
Directory.Delete("Output", true);
}

if (Directory.Exists("Input"))
{
Directory.Delete("Input", true);
}
}
}
Loading