volkertb / proxy-vole

Automatically exported from code.google.com/p/proxy-vole
0 stars 0 forks source link

OSX: proxy-vole ignores PAC proxy settings #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set Automatic Proxy Configuration on OSX
2. Use http://somelocation/proxy.pac
3. Try to get Proxy inside Java application

What is the expected output?
java application uses proxy

What do you see instead?
java application is uploading directly

What version of the product are you using?
proxy-vole_20121203.jar

On what operating system?
OSX 10.6.8

Please provide any additional information below.
I've tried these strategies - Strategy.OS_DEFAULT, Strategy.BROWSER
This java application works fine on WIN through PAC proxy.

Original issue reported on code.google.com by m...@xtendx.com on 24 Jul 2013 at 3:11

GoogleCodeExporter commented 9 years ago
In this method OsxProxySearchStrategy.installPacProxyIfAvailable
proxySettings.get("ProxyAutoConfigEnable") returns null.

Also, proxySettings contains FTPPassive=1 however I turned it off for all 
networks

Original comment by m...@xtendx.com on 24 Jul 2013 at 3:48

GoogleCodeExporter commented 9 years ago
The same on OSX 10.8.3

Original comment by m...@xtendx.com on 24 Jul 2013 at 3:57

GoogleCodeExporter commented 9 years ago

Original comment by m...@xtendx.com on 24 Jul 2013 at 4:08

Attachments:

GoogleCodeExporter commented 9 years ago
You're seeing the same thing I was reporting (Issue: 44) proxy-vole is basing 
your proxy info off of the highest priority network interface (this is obscure, 
but in your preferences.plist it shows the Bluetooth-Modem as being the highest 
priority). If you drill down further, there is no proxy information under 
bluetooth modem other than FTPPassive=1. If you go into your network 
preferences and select the gear icon and service order, you can bump your 
Ethernet or Wi-Fi up to position 1 and verify that proxy-vole now works in OS/X.

I propose that someone changes it to select en0 or en1 (commonly Ethernet and 
Wifi), unless anyone has a better solution.

Original comment by KannedF...@gmail.com on 12 Aug 2013 at 2:27

GoogleCodeExporter commented 9 years ago
Scratch that, en1 on my MacBook Air (2013) is Bluetooth PAN. What a disaster 
too... under /NetworkServices/<service_id>/Interface I get the following:

DeviceName: en1
Hardware: Ethernet
Type: Ethernet
UserDefinedName: Bluetooth PAN

Anyone know of any System files to cross reference for identifying BT 
interfaces?

Original comment by KannedF...@gmail.com on 12 Aug 2013 at 2:46

GoogleCodeExporter commented 9 years ago
I have found the same issue as described above (with reading the highest 
priority network interfaces, which may not be the right one). I thought I had a 
solution (looping through the interfaces in order until hitting an Ethernet 
interface), but that seems unreliable since there may be more than one. Has 
anyone figured out a way to see if an interface is connected or not? The System 
Preferences Network config pane has that info, so it must be available 
somewhere. With that info, I figure the first Ethernet interface that is also 
connected could safely (?) be selected as the one to pick proxy information 
from.

Any other ideas are welcome. The current approach of just picking the highest 
priority interface definitely does not work.

Original comment by hansberg...@gmail.com on 14 Nov 2013 at 12:20

GoogleCodeExporter commented 9 years ago
Please see https://code.google.com/p/proxy-vole/issues/detail?id=44 for a 
possible solution

Original comment by hansberg...@gmail.com on 14 Nov 2013 at 11:07

GoogleCodeExporter commented 9 years ago
Hi,
This seems to be the same issue as 44 indead. I fixed and closed that one and 
the fix is also valid for you. I will release a new version with the fix within 
this week.

Have fun,
- Rossi

Original comment by rosstaus...@googlemail.com on 4 Dec 2013 at 12:28