Lines Matching refs:gateway
67 char *gateway = curl_getenv("IPFS_GATEWAY"); in ipfs_gateway() local
70 if(gateway) { in ipfs_gateway()
71 if(ensure_trailing_slash(&gateway)) in ipfs_gateway()
73 return gateway; in ipfs_gateway()
113 gateway = curlx_dyn_ptr(&dyn); in ipfs_gateway()
115 if(gateway) in ipfs_gateway()
116 ensure_trailing_slash(&gateway); in ipfs_gateway()
118 if(!gateway) in ipfs_gateway()
123 return gateway; in ipfs_gateway()
128 Curl_safefree(gateway); in ipfs_gateway()
142 char *gateway = NULL; in ipfs_url_rewrite() local
175 gateway = strdup(config->ipfs_gateway); in ipfs_url_rewrite()
176 if(!gateway) { in ipfs_url_rewrite()
189 gateway = ipfs_gateway(); in ipfs_url_rewrite()
190 if(!gateway) { in ipfs_url_rewrite()
195 if(curl_url_set(gatewayurl, CURLUPART_URL, gateway, 0)) { in ipfs_url_rewrite()
264 free(gateway); in ipfs_url_rewrite()