You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ipfsgateway: Remove default gateway
A gateway can see everything, and we should not be shipping a hardcoded default from a third party company; it's a security risk. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
@@ -240,13 +240,8 @@ static int translate_ipfs_to_http(URLContext *h, const char *uri, int flags, AVD
|
|||||||
ret = populate_ipfs_gateway(h);
|
ret = populate_ipfs_gateway(h);
|
||||||
|
|
||||||
if (ret < 1) {
|
if (ret < 1) {
|
||||||
// We fallback on dweb.link (managed by Protocol Labs).
|
av_log(h, AV_LOG_ERROR,
|
||||||
snprintf(c->gateway_buffer, sizeof(c->gateway_buffer), "https://dweb.link");
|
"IPFS does not appear to be running.\n\n"
|
||||||
|
|
||||||
av_log(h, AV_LOG_WARNING,
|
|
||||||
"IPFS does not appear to be running. "
|
|
||||||
"You’re now using the public gateway at dweb.link.\n");
|
|
||||||
av_log(h, AV_LOG_INFO,
|
|
||||||
"Installing IPFS locally is recommended to "
|
"Installing IPFS locally is recommended to "
|
||||||
"improve performance and reliability, "
|
"improve performance and reliability, "
|
||||||
"and not share all your activity with a single IPFS gateway.\n"
|
"and not share all your activity with a single IPFS gateway.\n"
|
||||||
@@ -259,6 +254,8 @@ static int translate_ipfs_to_http(URLContext *h, const char *uri, int flags, AVD
|
|||||||
"3. Define an $IPFS_PATH environment variable "
|
"3. Define an $IPFS_PATH environment variable "
|
||||||
"and point it to the IPFS data path "
|
"and point it to the IPFS data path "
|
||||||
"- this is typically ~/.ipfs\n");
|
"- this is typically ~/.ipfs\n");
|
||||||
|
ret = AVERROR(EINVAL);
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user