Fix mistook path sbin to bin, fix Corefile directive proxy to forward for Homebrew. (#195)

This commit is contained in:
shunirr 2019-09-10 22:27:59 +09:00 committed by Chris O'Haver
parent 8fb8871a30
commit f0409d4492

View file

@ -11,9 +11,7 @@ class Coredns < Formula
hosts { hosts {
fallthrough fallthrough
} }
proxy . 8.8.8.8:53 8.8.4.4:53 { forward . https://8.8.8.8:53 https://8.8.4.4:53
protocol https_google
}
cache cache
errors errors
} }
@ -48,7 +46,7 @@ class Coredns < Formula
<string>#{plist_name}</string> <string>#{plist_name}</string>
<key>ProgramArguments</key> <key>ProgramArguments</key>
<array> <array>
<string>#{opt_sbin}/coredns</string> <string>#{opt_bin}/coredns</string>
<string>-conf</string> <string>-conf</string>
<string>#{etc}/coredns/Corefile</string> <string>#{etc}/coredns/Corefile</string>
</array> </array>
@ -68,6 +66,6 @@ class Coredns < Formula
end end
test do test do
assert_match "CoreDNS-#{version}", shell_output("#{sbin}/coredns -version") assert_match "CoreDNS-#{version}", shell_output("#{bin}/coredns -version")
end end
end end