Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
f6c2515d
Commit
f6c2515d
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: use only selected ipfs gateway when EGET_IPFS_GATEWAY is set
parent
8eba153d
master
devel
Tags unavailable
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
tools_eget
bin/tools_eget
+9
-8
No files found.
bin/tools_eget
View file @
f6c2515d
...
...
@@ -630,6 +630,15 @@ check_ipfs_gateway()
select_ipfs_gateway
()
{
IPFS_GATEWAY
=
''
# if set some http gateway, use only it
if
[
-n
"
$EGET_IPFS_GATEWAY
"
]
;
then
check_ipfs_gateway
"
$EGET_IPFS_GATEWAY
"
&&
IPFS_GATEWAY
=
"
$EGET_IPFS_GATEWAY
"
||
ipfs_mode
=
"disabled"
return
fi
# check public http gateways
for
ipfs_gateway
in
$ipfs_gateways
;
do
check_ipfs_gateway
$ipfs_gateway
||
continue
...
...
@@ -672,14 +681,6 @@ select_ipfs_mode()
fi
fi
IPFS_GATEWAY
=
''
# if set some http gateway, use only it
if
[
-n
"
$EGET_IPFS_GATEWAY
"
]
;
then
check_ipfs_gateway
"
$EGET_IPFS_GATEWAY
"
&&
IPFS_GATEWAY
=
"
$EGET_IPFS_GATEWAY
"
||
ipfs_mode
=
"disabled"
return
fi
select_ipfs_gateway
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment