First you need to find which network interface you want to change:
networksetup -listallnetworkservices
Ethernet
Use this in the command:
networksetup -setautoproxyurl Ethernet http://wpad.your.path.here/wpad.datBy adding a url it automatically switches it on. To check:
networksetup -getautoproxyurl EthernetSimples. Don't know why it took me so long to find it. Don't think it's in the man page for networksetup for some reason!
No comments:
Post a Comment