Improve socksaddr

This commit is contained in:
世界
2022-07-20 22:05:11 +08:00
parent 6327c4b40c
commit 385c42e638
6 changed files with 8 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ func (w *ResolvePacketConn) ReadPacket(buffer *buf.Buffer) (M.Socksaddr, error)
func (w *ResolvePacketConn) 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