NEProxySettings.matchDomains not support the use of ip address

let proxySettings = NEProxySettings()

proxySettings.matchDomains = ["78.16.49.15"]


In safari open http://78.16.49.15 Will not use a proxy, but if


matchDomains = [""]


there's ok

Replies

You haven’t asked a question here. Do you need help with this? Or would you just like the OS to change to match your expectations? If it’s the latter, you should file a bug report via the usual channel.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thanks for the reply, I want to know that NEProxySettings.matchDomains can't set ip? When I set it to ip, accessing this ip address will not use the proxy, the domain name can

It seems that you’ve already determined that IP addresses don’t work in this context. If you’d like to see that change, your best option is to file an enhancement request explaining your rationale.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

45307701

Thank you