Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macOS support #11

Merged
merged 12 commits into from
May 26, 2019
Prev Previous commit
Next Next commit
PEP 8 be damned; this hurts my eyes
  • Loading branch information
dlenski committed May 26, 2019
commit d932ba0c87c19a31d32d2cca0e01fdecd2f23766
4 changes: 1 addition & 3 deletions vpn_slice/posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class DigProvider(DNSProvider):
def __init__(self):
self.dig = get_executable('/usr/bin/dig')

def lookup_host(
self, hostname, dns_servers, *, bind_address=None, search_domains=()
):
def lookup_host(self, hostname, dns_servers, *, bind_address=None, search_domains=()):
cl = [self.dig, '+short', '+noedns']
if bind_address:
cl.extend(('-b', str(bind_address)))
Expand Down
4 changes: 1 addition & 3 deletions vpn_slice/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ def deconfigure_firewall(self, device):

class DNSProvider(metaclass=ABCMeta):
@abstractmethod
def lookup_host(
self, hostname, dns_servers, *, bind_address=None, search_domains=()
):
def lookup_host(self, hostname, dns_servers, *, bind_address=None, search_domains=()):
"""Look up the address of a host."""


Expand Down