get_current_proxy
get_current_proxy($connection); - get the proxy used for the specified network connection
The function accepts parameters as input:
$connection – name of the connection (you can find it in the properties of network connections)
After testing, the function returns the result of its work to the script :
Proxy used – proxy used by the specified network
empty string – if the proxy is not used or there is no such connection