-
Notifications
You must be signed in to change notification settings - Fork 10
/
nextdns.rb
64 lines (55 loc) · 1.91 KB
/
nextdns.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Nextdns < Formula
desc "NextDNS DNS/53 to DoH Proxy"
homepage "https://nextdns.io"
version "1.43.5"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/nextdns/nextdns/releases/download/v1.43.5/nextdns_1.43.5_darwin_amd64.tar.gz"
sha256 "cb1dfff138d37674bfa46160b4a0256ff4658d54d1410ca744539dc761c22cbf"
def install
bin.install "nextdns"
end
end
if Hardware::CPU.arm?
url "https://github.com/nextdns/nextdns/releases/download/v1.43.5/nextdns_1.43.5_darwin_arm64.tar.gz"
sha256 "16bb87f5e707821eff2eacd6076466e389631fcbc4913d91c3606b03596c961b"
def install
bin.install "nextdns"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/nextdns/nextdns/releases/download/v1.43.5/nextdns_1.43.5_linux_amd64.tar.gz"
sha256 "e25594aff185358e2e22c339817c3ab2232bbe755644a861eda199989c349c69"
def install
bin.install "nextdns"
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/nextdns/nextdns/releases/download/v1.43.5/nextdns_1.43.5_linux_armv6.tar.gz"
sha256 "9e16936b1de380c77646e6e68d61c9f190d959d3794e543b98a0b85dc1a1d61b"
def install
bin.install "nextdns"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/nextdns/nextdns/releases/download/v1.43.5/nextdns_1.43.5_linux_arm64.tar.gz"
sha256 "09ee20af9dce10837f52ce7bf8f237461344efb1155023bafb4b6952b269afa5"
def install
bin.install "nextdns"
end
end
end
def caveats
<<~EOS
To install NextDNS, run the following command:
sudo nextdns install --profile <your_profile_id>
Then setup your DNS manually to 127.0.0.1 or by running:
sudo nextdns activate
EOS
end
end