mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
Merge pull request #1480 from Nyuwb/patch-1
feat(icon-upload): proxy management
This commit is contained in:
@@ -267,6 +267,11 @@ class ItemController extends Controller
|
||||
],
|
||||
];
|
||||
|
||||
// Proxy management
|
||||
if (isset(getenv('HTTPS_PROXY')) || isset(getenv('https_proxy'))) {
|
||||
$options['proxy']['http'] = getenv('HTTPS_PROXY') ?: getenv('https_proxy');
|
||||
}
|
||||
|
||||
$file = $request->input('icon');
|
||||
$path_parts = pathinfo($file);
|
||||
if (!isset($path_parts['extension'])) {
|
||||
|
||||
Reference in New Issue
Block a user