forked from pool/MirrorCache
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=14
40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
From 6eab1b0993b01a3acdb4532ca22543eee8b48c00 Mon Sep 17 00:00:00 2001
|
|
From: Elisei Roca <eroca@suse.de>
|
|
Date: Thu, 5 Aug 2021 12:19:59 +0200
|
|
Subject: Fix one more typo (#179)
|
|
|
|
---
|
|
lib/MirrorCache/WebAPI/Plugin/RootRemote.pm | 2 +-
|
|
lib/MirrorCache/WebAPI/Plugin/RootRsync.pm | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/MirrorCache/WebAPI/Plugin/RootRemote.pm b/lib/MirrorCache/WebAPI/Plugin/RootRemote.pm
|
|
index 2bc23b1..d79bf99 100644
|
|
--- a/lib/MirrorCache/WebAPI/Plugin/RootRemote.pm
|
|
+++ b/lib/MirrorCache/WebAPI/Plugin/RootRemote.pm
|
|
@@ -98,7 +98,7 @@ sub location {
|
|
$c = $dm->c if $dm;
|
|
if ($dm && $ENV{MIRRORCACHE_REDIRECT_VPN} && $dm->vpn) {
|
|
return $self->rooturlredirectvpn . $filepath unless $c && $c->req->is_secure;
|
|
- return $self->rooturlredirectbpns . $filepath;
|
|
+ return $self->rooturlredirectvpns . $filepath;
|
|
}
|
|
return $self->rooturlredirect . $filepath unless $c && $c->req->is_secure;
|
|
return $self->rooturlredirects . $filepath;
|
|
diff --git a/lib/MirrorCache/WebAPI/Plugin/RootRsync.pm b/lib/MirrorCache/WebAPI/Plugin/RootRsync.pm
|
|
index 88696de..5c8eae8 100644
|
|
--- a/lib/MirrorCache/WebAPI/Plugin/RootRsync.pm
|
|
+++ b/lib/MirrorCache/WebAPI/Plugin/RootRsync.pm
|
|
@@ -116,7 +116,7 @@ sub location {
|
|
$c = $dm->c if $dm;
|
|
if ($dm && $ENV{MIRRORCACHE_REDIRECT_VPN} && $dm->vpn) {
|
|
return $self->rooturlredirectvpn . $filepath unless $c && $c->req->is_secure;
|
|
- return $self->rooturlredirectbpns . $filepath;
|
|
+ return $self->rooturlredirectvpns . $filepath;
|
|
}
|
|
return $self->rooturlredirect . $filepath unless $c && $c->req->is_secure;
|
|
return $self->rooturlsredirect . $filepath;
|
|
--
|
|
2.31.1
|
|
|