On Mon, Mar 02, 2020 at 08:32:10PM +0530, Sourabh Sharma wrote: > Patch for adding Documentation of ff_http_match_no_proxy > Function ff_http_match_no_proxy check for host of proxy address matches with > the hostname or not. > > --- > libavformat/network.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/libavformat/network.h b/libavformat/network.h > index 71347e815b..7c93375ae5 100644 > --- a/libavformat/network.h > +++ b/libavformat/network.h > @@ -303,6 +303,13 @@ int ff_listen_connect(int fd, const struct sockaddr > *addr, > socklen_t addrlen, int timeout, > URLContext *h, int will_try_next); > > +/** > + * It Checks for a host of proxy address matches with the hostname or not. > + * > + * @param no_proxy Server address of proxy server e.g. example.domain.com > + * @param hostname Server address of hostname e.g. domain.com > + * @return 0 if don't match, 1 for exactly match > +*/ > int ff_http_match_no_proxy(const char *no_proxy, const char *hostname);
maybe looking at how this function is used makes it clearer what it does for example libavformat/http.c: use_proxy = !ff_http_match_no_proxy(getenv("no_proxy"), hostname) && libavformat/http.c- proxy_path && av_strstart(proxy_path, "http://", NULL); but basically no_proxy, is a list of addresses for which not to use the proxy server, these may be local addresses [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB When you are offended at any man's fault, turn to yourself and study your own failings. Then you will forget your anger. -- Epictetus
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".