We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec967bc commit 3b3bf76Copy full SHA for 3b3bf76
pkg/handlers/proxy.go
@@ -4,10 +4,15 @@ import (
4
"github.com/buglloc/simplelog"
5
"github.com/miekg/dns"
6
7
+ "github.com/buglloc/rip/pkg/cfg"
8
"github.com/buglloc/rip/pkg/resolver"
9
)
10
11
func ProxyHandler(question dns.Question, name string, l log.Logger) (rrs []dns.RR) {
12
+ if !cfg.AllowProxy {
13
+ return
14
+ }
15
+
16
subName := parseSubName(name)
17
ip, err := resolver.ResolveIp(question.Qtype, subName)
18
if err != nil {
0 commit comments