dns: support default port 53 in dnsserver config

This commit is contained in:
nadoo committed 2021-09-10 23:36:25 +08:00
1 parent c86cadb4be
commit 6bd77a0b2a
5 files changed
+21 -12

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ func (s *HTTP) Serve(cc net.Conn) {
if s.pretend {
fmt.Fprintf(c, "%s 404 Not Found\r\nServer: nginx\r\n\r\n404 Not Found\r\n", req.proto)
log.F("[http] %s <-> %s,pretend as web server", c.RemoteAddr().String(), s.Addr())
log.F("[http] %s <-> %s, pretend as web server", c.RemoteAddr().String(), s.Addr())
return
}