mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: support default port 53 in dnsserver config
This commit is contained in:
1 parent
c86cadb4be
commit
6bd77a0b2a
5 files changed
+21
-12
No files matched your search
+1
-1
@@ -85,7 +85,7 @@ func (s *SS) Serve(c net.Conn) {
|
||||
}
|
||||
}
|
||||
|
||||
// ListenAndServe listens on server's addr and serves connections.
|
||||
// ListenAndServeUDP serves udp requests.
|
||||
func (s *SS) ListenAndServeUDP() {
|
||||
lc, err := net.ListenPacket("udp", s.addr)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user