-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnextdns.rb
70 lines (61 loc) · 2.02 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
65
66
67
68
69
70
# 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.44.4"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/nextdns/nextdns/releases/download/v1.44.4/nextdns_1.44.4_darwin_amd64.tar.gz"
sha256 "6476a8560e190b02205448614491fecaedbf25b2100be5cdebdcf89884044e50"
def install
bin.install "nextdns"
end
end
if Hardware::CPU.arm?
url "https://github.com/nextdns/nextdns/releases/download/v1.44.4/nextdns_1.44.4_darwin_arm64.tar.gz"
sha256 "f0e6e17f75c22ae8431cbcde80c491ff868f01b6a3f6878df2627707adbb944c"
def install
bin.install "nextdns"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/nextdns/nextdns/releases/download/v1.44.4/nextdns_1.44.4_linux_amd64.tar.gz"
sha256 "d046af0c8ea70e52dc2e26c98090283db6c38ac8be74c569a4df0a670400f51e"
def install
bin.install "nextdns"
end
end
end
if Hardware::CPU.arm?
if !Hardware::CPU.is_64_bit?
url "https://github.com/nextdns/nextdns/releases/download/v1.44.4/nextdns_1.44.4_linux_armv6.tar.gz"
sha256 "455c965900e44a3c3d1fd7b532515d3cc7b0eb8f4d72562e7b548bc9ab98669d"
def install
bin.install "nextdns"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/nextdns/nextdns/releases/download/v1.44.4/nextdns_1.44.4_linux_arm64.tar.gz"
sha256 "f2a38d370c994e54ac145347306287a6b9662059dfe82fea264c52965a03fbd6"
def install
bin.install "nextdns"
end
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