Change Mac proxy settings in a command line tool application

Is it possible to change proxy server settings (for example, what does it do networksetup) in a command line tool application? I want to say what I want to write command line tool, which can change the network and proxy settings on the Mac.

If so, can someone provide some source that I can find and find the starting points and find out about it?

+3
source share
1 answer

You can simply use NSTasknetworksetup with the required arguments to run. To do this, you must include the AppKit framework in your application. (But note that to change proxy settings you need root privilege to use networksetup)

+3
source

All Articles