Browse Source

Rename internal dns protocol

世界 4 years ago
parent
commit
63229aff82
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/dns/nameserver_tcp.go
  2. 1 1
      app/dns/nameserver_udp.go

+ 1 - 1
app/dns/nameserver_tcp.go

@@ -203,7 +203,7 @@ func (s *TCPNameServer) sendQuery(ctx context.Context, domain string, clientIP n
 			}
 
 			dnsCtx = session.ContextWithContent(dnsCtx, &session.Content{
-				Protocol:       "dns",
+				Protocol:       "v2ray.dns",
 				SkipDNSResolve: true,
 			})
 

+ 1 - 1
app/dns/nameserver_udp.go

@@ -199,7 +199,7 @@ func (s *ClassicNameServer) sendQuery(ctx context.Context, domain string, client
 			udpCtx = session.ContextWithInbound(udpCtx, inbound)
 		}
 		udpCtx = session.ContextWithContent(udpCtx, &session.Content{
-			Protocol: "dns",
+			Protocol: "v2ray.dns",
 		})
 		s.udpServer.Dispatch(udpCtx, s.address, b)
 	}