1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-03-07 13:40:38 -05:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Mark McDowall
90cd8df1ae Add private IPv6 networks
(cherry picked from commit 52972e7efcce800560cbbaa64f5f76aaef6cbe77)
2025-11-09 10:20:36 +00:00
3 changed files with 7 additions and 40 deletions

1
.gitignore vendored
View File

@@ -174,4 +174,3 @@ node_modules.nosync
# Ignore Jetbrains IntelliJ Workspace Directories
.idea/
.pre-commit-config

View File

@@ -88,8 +88,6 @@ stages:
pool:
vmImage: $(imageName)
workspace:
clean: all
variables:
# Disable stylecop here - linting errors get caught by the analyze task
EnableAnalyzers: $(enableAnalysis)
@@ -97,15 +95,6 @@ stages:
- checkout: self
submodules: true
fetchDepth: 1
- task: Cache@2
inputs:
key: 'nuget | "$(osName)" | global.json'
restoreKeys: |
nuget | "$(osName)"
nuget
path: $(nugetCacheFolder)
displayName: Cache NuGet packages
- task: UseDotNet@2
displayName: 'Install .net core'
inputs:
@@ -123,13 +112,11 @@ stages:
- bash: ./build.sh --backend --enable-extra-platforms
displayName: Build Radarr Backend
- bash: |
find ${OUTPUTFOLDER} -type f ! -path "*/publish/*" -delete 2>/dev/null || true
find ${OUTPUTFOLDER} -depth -empty -type d -delete 2>/dev/null || true
find ${TESTSFOLDER} -type f ! -path "*/publish/*" -delete 2>/dev/null || true
find ${TESTSFOLDER} -depth -empty -type d -delete 2>/dev/null || true
rm -rf _temp/obj _temp/bin 2>/dev/null || true
dotnet nuget locals temp --clear 2>/dev/null || true
displayName: Clean up build artifacts
find ${OUTPUTFOLDER} -type f ! -path "*/publish/*" -exec rm -rf {} \;
find ${OUTPUTFOLDER} -depth -empty -type d -exec rm -r "{}" \;
find ${TESTSFOLDER} -type f ! -path "*/publish/*" -exec rm -rf {} \;
find ${TESTSFOLDER} -depth -empty -type d -exec rm -r "{}" \;
displayName: Clean up intermediate output
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
- publish: $(outputFolder)
artifact: '$(osName)Backend'
@@ -174,8 +161,6 @@ stages:
imageName: ${{ variables.windowsImage }}
pool:
vmImage: $(imageName)
workspace:
clean: all
steps:
- task: UseNode@1
displayName: Set Node.js version
@@ -196,13 +181,6 @@ stages:
env:
FORCE_COLOR: 0
YARN_CACHE_FOLDER: $(yarnCacheFolder)
- bash: |
if [ "$(osName)" != "Windows" ]; then
rm -rf node_modules 2>/dev/null || true
fi
rm -rf _temp 2>/dev/null || true
displayName: Clean up frontend build artifacts
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
- publish: $(outputFolder)
artifact: '$(osName)Frontend'
displayName: Publish Frontend
@@ -272,11 +250,6 @@ stages:
find . -name "Radarr" -exec chmod a+x {} \;
find . -name "Radarr.Update" -exec chmod a+x {} \;
displayName: Set executable bits
- bash: |
rm -rf _artifacts _output _temp 2>/dev/null || true
dotnet nuget locals temp --clear 2>/dev/null || true
displayName: Clean up source artifacts
condition: succeeded()
- task: ArchiveFiles@2
displayName: Create win-x64 zip
inputs:
@@ -497,13 +470,6 @@ stages:
testRunTitle: '$(testName) Unit Tests'
failTaskOnFailedTests: true
failTaskOnMissingResultsFile: ne(variables['testName'], 'freebsd-x64')
- bash: |
if [ "$(osName)" != "Windows" ]; then
rm -rf ${TESTSFOLDER} 2>/dev/null || true
dotnet nuget locals temp --clear 2>/dev/null || true
fi
displayName: Clean up test artifacts
condition: always()
- job: Unit_Docker
displayName: Unit Docker

View File

@@ -65,6 +65,8 @@ namespace NzbDrone.Host
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("10.0.0.0"), 8));
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("172.16.0.0"), 12));
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("192.168.0.0"), 16));
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("fc00::"), 7));
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("fe80::"), 10));
});
services.AddRouting(options => options.LowercaseUrls = true);