kmille / riseup-vpn-configurator

a simple command line tool to get RiseupVPN up and running
https://riseup.net/en/vpn
GNU General Public License v3.0
25 stars 5 forks source link

Feature: Allow hostnames in excluded_routes #1

Closed kmille closed 1 year ago

kmille commented 1 year ago
for route in excluded_routes:
  if hostname
   resolve
   for each ip in resolved_ips:
     add to excluded rules
kmille commented 1 year ago

fixed by 6baa55e07feae04f75be59ae9bb72e109601a15a

kmille commented 1 year ago

args, not working if dns resolves multiple ip addresses. Use socket.gethostbyname_ex instead.

In [2]: socket.gethostbyname("www.fleaz.me")
Out[2]: '34.141.72.9'
In [4]: socket.gethostbyname_ex("www.fleaz.me")
Out[4]: ('hardcore-dubinsky-406505.netlify.com', [], ['34.141.72.9', '35.156.224.161'])
kmille commented 1 year ago

fixed