Fixed DNS port bind test error

dev
Ice3man543 2021-02-27 12:43:14 +05:30
parent f0e0c1e7d0
commit d176eb3a7c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func (h *dnsBasic) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
func (h *dnsBasic) Execute(filePath string) error {
var routerErr error
srv := &dns.Server{Addr: ":" + strconv.Itoa(54), Net: "udp"}
srv := &dns.Server{Addr: "127.0.0.1:" + strconv.Itoa(54), Net: "udp"}
srv.Handler = h
go func() {
if err := srv.ListenAndServe(); err != nil {