Skip to content

Commit 8927391

Browse files
committed
clean code
1 parent 2998d4a commit 8927391

11 files changed

+6
-632
lines changed

plugin/dnssrc/LICENSE

-201
This file was deleted.

plugin/dnssrc/dnssrc.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
var log = clog.NewWithPlugin(pluginName)
1919

2020
type Dnsredir struct {
21-
Next plugin.Handler
21+
Next plugin.Handler
2222

2323
Upstreams *[]Upstream
2424
}
@@ -114,9 +114,6 @@ func (r *Dnsredir) ServeDNS(ctx context.Context, w dns.ResponseWriter, req *dns.
114114
return dns.RcodeSuccess, nil
115115
}
116116

117-
// Add resolved IPs to ipset/pf before write response to DNS resolver
118-
// thus the rule based routing can take effect immediately
119-
ipsetAddIP(upstream, reply)
120117
_ = w.WriteMsg(reply)
121118

122119
RequestDuration.WithLabelValues(server, host.Name()).Observe(float64(time.Since(start).Milliseconds()))

plugin/dnssrc/ipset_generic.go

-37
This file was deleted.

plugin/dnssrc/ipset_linux.go

-117
This file was deleted.

plugin/dnssrc/log_test.go

-6
This file was deleted.

0 commit comments

Comments
 (0)