Comments (8)
You can get the current mac OS X proxy settings via
http://developer.apple.com/library/mac/#documentation/Networking/Reference/SCDyn
amicStoreCopySpecific/Reference/reference.html with the function
SCDynamicStoreCopyProxies. Since that is only a native c function, you need to
use JNI.
You can also find an example here:
http://developer.apple.com/library/mac/#qa/qa2001/qa1234.html and within the
network source for Qt4
(http://svn.netlabs.org/repos/qt4/trunk/src/network/kernel/qnetworkproxy_mac.cpp
). Hope that helps.
Original comment by [email protected]
on 30 Jan 2011 at 7:07
from proxy-vole.
Unfortunately there seem to be some problems to override the proxy settings in
Java under OS X
(http://lists.apple.com/archives/java-dev/2009/Jun/msg00148.html).
Original comment by [email protected]
on 30 Jan 2011 at 7:15
from proxy-vole.
Thanks a lot for all this info.
I currently have no access to an Mac and have absolutly no experience with it.
JNI code loading, library format and loading, c compiler, ...
So I could try to build a library for OSX but have no chance to debug or test
it.
Therefore support for OSX is very limited at the moment and I still hope that I
get some production quality code contribution some day or buy a Mac one day and
do it myself but this may take some time ;-)
Problems like the mentioned one is the reason why I do not rely on the VM proxy
features but wrote proxy-vole
Have fun,
- Rossi
Original comment by [email protected]
on 31 Jan 2011 at 6:01
from proxy-vole.
Small update of the status of this request.
I finally have access to OSX and started to implement support for OSX.
Proxy settings are stored in OSX in a plist XML file. I'm going to read the
settings from there and setup a proxy selector in Java. This will allow me to
support OSX without writing native code.
Initial support for this is already in the repository.
Have fun,
- Rossi
Original comment by [email protected]
on 5 May 2011 at 8:50
- Changed state: Started
from proxy-vole.
I have now deployed a new version that includes support for OSX.
It is not very well tested yet but for me it works.
Have fun,
- Rossi
Original comment by [email protected]
on 15 May 2011 at 6:55
- Changed state: Done
from proxy-vole.
I'm having some difficulties...
when I call ProxySearch.getProxySelector() under OSX using default strategies,
i get "null" value as return. (proxy is configured either as PAC/Manual at OS
level).
Is it a configuration problem of some kind?
Original comment by [email protected]
on 24 May 2011 at 12:16
from proxy-vole.
Hello Liro,
Sorry for my late reply I was away for some weeks and then forgot about this
issue.
Do you still have the problem? If yes could you please send me the following
information from your OSX installation:
- OSX version
and the file that is located at
/Library/Preferences/SystemConfiguration/preferences.plist
This file will contain the proxy settings that are selected. I need to have a
look at it to find out why I the parsing fails.
Please send the information at rosstauscher (et) gmx.de
The OSX code is rather new and a little bit untested. It may be that there is
still a bug in this.
Have fun,
- Rossi
Original comment by [email protected]
on 20 Jun 2011 at 7:22
- Changed state: New
from proxy-vole.
Original comment by [email protected]
on 27 Jul 2012 at 9:31
- Changed state: Done
from proxy-vole.
Related Issues (20)
- OSX: proxy-vole ignores PAC proxy settings HOT 8
- Return of myIpAddress will treated by JavaxPacScriptParser as an object with following side effects. HOT 1
- proxy-vole is selecting bluetooth interface in OS/X 10.8 HOT 5
- The proxy selector is taking long time after updating windows ( in windows7 ) HOT 2
- Invalid java.io.tmpdir will cause NullPointerException in static initializer which leads to ExceptionInInitializerError HOT 1
- NullPointerException when PAC file not available HOT 3
- Improper logic to reload PAC file HOT 2
- ProxyListFallbackSelector returns a proxy rather than DIRECT when asked the proxy for the proxy.
- Local bypass in IE is ignored if additional whitelist-entries are defined HOT 1
- UnsatisfiedLinkError HOT 1
- DefaultWhiteListParser cannot handle www.*.com
- ProxySearch using default is giving erroneous proxy HOT 1
- Improvement in proxy fallback selection
- shExpMatch for IP address HOT 3
- Apache Httpclient 4 - not reading proxy settings from proxy-vole HOT 2
- Cannot detect Linux EVN_VAR IPv6 proxy
- JavaProxySearchStrategy only enabled with HTTP system properties given HOT 1
- Security-Exception with PAC script in Java 8
- SOCKS implementation is wrong
- NPE in IEProxySearchStrategy.getProxySelector()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxy-vole.