vpn-kill-switch / killswitch

VPN kill switch for macOS
https://vpn-kill-switch.com
BSD 3-Clause "New" or "Revised" License
162 stars 15 forks source link

resolve domain in case #1

Closed nbari closed 7 years ago

nbari commented 7 years ago

the -ip option may be a domain, would be nice to resolve the domain and create the rules using all the available ips.

killswitch -ip country.endpoint.com 

Maybe change it to

killswitch -vpn country.endpoing.com
nbari commented 7 years ago

That doesn't help much since the IP that needs to be added is the IP used to connect not the one from all the available servers, once VPN is connected the PEER IP is the one should be used.

For now would be good to find a way of getting that IP easy, currently using this commands it can be obtained:

killswitch -i

Better would be to automate this and avoid asking for an IP.