Minor fixes

This commit is contained in:
世界 committed 2022-07-10 16:19:42 +08:00
1 parent 29f78248dc
commit 7f84191748
12 files changed
+69 -39

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ func (w *ResolveUDPConn) ReadPacket(buffer *buf.Buffer) (M.Socksaddr, error) {
func (w *ResolveUDPConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error {
defer buffer.Release()
if destination.Family().IsFqdn() {
if destination.IsFqdn() {
addresses, err := w.router.Lookup(context.Background(), destination.Fqdn, w.strategy)
if err != nil {
return err