fix: addr panic

This commit is contained in:
wwqgtxx
2023-01-16 12:47:22 +08:00
parent a5821e5785
commit e88bddc24f
3 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@ func (c *packet) WriteBack(b []byte, addr net.Addr) (n int, err error) {
err = errors.New("writeBack to closed connection")
return
}
err = conn.WritePacket(buff, M.ParseSocksaddr(addr.String()))
err = conn.WritePacket(buff, M.SocksaddrFromNet(addr))
return
}