avformat/gopher: Add default_whitelist to ff_gopher_protocol
Signed-off-by: parazyd <parazyd@dyne.org> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
e690aa6a8d
commit
ed4c2e183b
2
configure
vendored
2
configure
vendored
@ -3449,7 +3449,7 @@ ffrtmpcrypt_protocol_select="tcp_protocol"
|
|||||||
ffrtmphttp_protocol_conflict="librtmp_protocol"
|
ffrtmphttp_protocol_conflict="librtmp_protocol"
|
||||||
ffrtmphttp_protocol_select="http_protocol"
|
ffrtmphttp_protocol_select="http_protocol"
|
||||||
ftp_protocol_select="tcp_protocol"
|
ftp_protocol_select="tcp_protocol"
|
||||||
gopher_protocol_select="network"
|
gopher_protocol_select="tcp_protocol"
|
||||||
http_protocol_select="tcp_protocol"
|
http_protocol_select="tcp_protocol"
|
||||||
http_protocol_suggest="zlib"
|
http_protocol_suggest="zlib"
|
||||||
httpproxy_protocol_select="tcp_protocol"
|
httpproxy_protocol_select="tcp_protocol"
|
||||||
|
@ -110,13 +110,13 @@ static int gopher_read(URLContext *h, uint8_t *buf, int size)
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const URLProtocol ff_gopher_protocol = {
|
const URLProtocol ff_gopher_protocol = {
|
||||||
.name = "gopher",
|
.name = "gopher",
|
||||||
.url_open = gopher_open,
|
.url_open = gopher_open,
|
||||||
.url_read = gopher_read,
|
.url_read = gopher_read,
|
||||||
.url_write = gopher_write,
|
.url_write = gopher_write,
|
||||||
.url_close = gopher_close,
|
.url_close = gopher_close,
|
||||||
.priv_data_size = sizeof(GopherContext),
|
.priv_data_size = sizeof(GopherContext),
|
||||||
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
||||||
|
.default_whitelist = "gopher,tcp"
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user