Describe the bug
At this time, GreenTunnel tries get device name that handle routing to 0.0.0.0, and get Network services name by device name.
However, darwin doesn't fill device name to VPN Network service when running listnetworkserviceorder.
Example result here:
~ % networksetup -listnetworkserviceorder
An asterisk (*) denotes that a network service is disabled.
(1) USB 10/100/1000 LAN
(Hardware Port: USB 10/100/1000 LAN, Device: en7)
(2) Wi-Fi
(Hardware Port: Wi-Fi, Device: en0)
(3) Bluetooth PAN
(Hardware Port: Bluetooth PAN, Device: en6)
(4) Thunderbolt Bridge
(Hardware Port: Thunderbolt Bridge, Device: bridge0)
(5) (VPN Name)
(Hardware Port: L2TP, Device: ) # <- empty
So sh -c "networksetup -listnetworkserviceorder (...) cut -d ' ' -f2" command returns empty string, then GreenTunnel execute networksetup -setwebproxy '' 127.0.0.1 8000. This returns error with ** Error: The parameters were not valid. message.
To Reproduce
Steps to reproduce the behavior:
Setup VPN on darwin device. (In my case, L2TP/IPsec used)
Start green-tunnel with --system-proxy option.
Expected behavior
System proxy points GreenTunnel automatically.
Screenshots
Desktop (please complete the following information):
Describe the bug At this time, GreenTunnel tries get device name that handle routing to 0.0.0.0, and get Network services name by device name.
However, darwin doesn't fill device name to VPN Network service when running
listnetworkserviceorder
.Example result here:
So
sh -c "networksetup -listnetworkserviceorder (...) cut -d ' ' -f2"
command returns empty string, then GreenTunnel executenetworksetup -setwebproxy '' 127.0.0.1 8000
. This returns error with** Error: The parameters were not valid.
message.To Reproduce Steps to reproduce the behavior:
--system-proxy
option.Expected behavior System proxy points GreenTunnel automatically.
Screenshots![image](https://user-images.githubusercontent.com/21969938/124534833-05251b80-de50-11eb-987f-20d63b111f06.png)
Desktop (please complete the following information):