For some of the use cases, we need Sauce connect proxy to redirect the requests received on certain source domains to a target domain. Because the source domain is a fake domain that our DNS server can not resolve.
Please add a new command line flag like:
--redirect-domains <source_domains> <target_domain>
Please support wild cards in the source domain names.
--redirect-domains *.lightning.* test,sample.com
As Sauce connect proxy is already interpreting domains to support other existing command line flags like below, this is easy to achieve on the Sauce connect proxy side: