Skip to content

Commit f5d6c42

Browse files
committed
Update dnsproxy.go
1 parent aaca5e6 commit f5d6c42

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

dnsproxy.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,6 @@ func (proxy *DNSProxy) processTypeA(q *dns.Question, requestMsg *dns.Msg) (*dns.
208208
return &rr, nil
209209
}
210210

211-
/*if q.Name == "host.docker.internal." {
212-
rr, err := dns.NewRR("host.docker.internal. IN A 127.0.0.1")
213-
214-
if err != nil {
215-
return nil, err
216-
}
217-
218-
proxy.Cache.Set(q.Name, &Answer{Name: q.Name, TTL: math.MaxInt32, Data: "127.0.0.1"})
219-
220-
return &rr, nil
221-
}*/
222-
223211
ip, err := proxy.getIPByDomain(q.Name)
224212

225213
if err != nil {

0 commit comments

Comments
 (0)