mayswind / AriaNg

AriaNg, a modern web frontend making aria2 easier to use.
http://ariang.mayswind.net
MIT License
11.7k stars 1.28k forks source link

Feature: Add regex input field to inlude proxy for certian hosts #751

Open divyam234 opened 4 months ago

divyam234 commented 4 months ago

Aria2c doesn't support proxy hosts filter but it can easily be done through ui which asks for regex to include certain hosts for http proxy.

https://github.com/divyam234/AriaNg/commit/4201ec0aa4302ec5f4c67702465fa80663ccc27d

I have added this in my fork

mayswind commented 4 months ago

I think you can use one AriaNg option to match different http urls and use a specified proxy server, similar to the following

^https?:\/\/one\.domain\.com\/|proxy1.com:8000
^https?:\/\/another\.domain\.com\/|proxy2.com:8000

For urls using the domain "one.domain.com", the download task would use proxy1.com:8000 as proxy server.

Welcome to submit a pull request!