MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_http_match_no_proxy

Function ff_http_match_no_proxy

libavformat/network.c:549–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549int ff_http_match_no_proxy(const char *no_proxy, const char *hostname)
550{
551 char *buf, *start;
552 int ret = 0;
553 if (!no_proxy)
554 return 0;
555 if (!hostname)
556 return 0;
557 buf = av_strdup(no_proxy);
558 if (!buf)
559 return 0;
560 start = buf;
561 while (start) {
562 char *sep, *next = NULL;
563 start += strspn(start, " ,");
564 sep = start + strcspn(start, " ,");
565 if (*sep) {
566 next = sep + 1;
567 *sep = '\0';
568 }
569 if (match_host_pattern(start, hostname)) {
570 ret = 1;
571 break;
572 }
573 start = next;
574 }
575 av_free(buf);
576 return ret;
577}
578
579void ff_log_net_error(void *ctx, int level, const char* prefix)
580{

Callers 3

http_open_cnx_internalFunction · 0.85
ff_tls_open_underlyingFunction · 0.85
testFunction · 0.85

Calls 3

av_strdupFunction · 0.85
match_host_patternFunction · 0.85
av_freeFunction · 0.50

Tested by 1

testFunction · 0.68