actually fix that bug

This commit is contained in:
abbie 2022-04-13 11:37:00 +01:00
parent 922c1f1fb3
commit 4d2e355011
No known key found for this signature in database
GPG key ID: 04DDE463F9200F87
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "packeteer"
description = "An attempt at a Rust library that can be used to assist in programmatically analysing, serving and handling received protocol packets."
version = "0.4.2"
version = "0.4.3"
edition = "2021"
authors = ["Celeste <colean@colean.cc>"]
license = "MPL-2.0"

View file

@ -163,7 +163,7 @@ pub fn construct(packet: Vec<u8>) -> DnsPacket {
i = i + 1;
v = v - 1;
}
if zrtype == RecordType::TXT {
if fromtype(zrtype) == 16 {
data.remove(0 as usize);
}
let ans = DnsAnswer { name: 0xc00c, rtype: zrtype, class: class, ttl: ttl, data: data };

View file

@ -17,7 +17,7 @@
//! An example of request generation using the http1 module:
//!
//! ```no_run
//! use packeteer::http1::*
//! use packeteer::http1::*;
//!
//! fn main() {
//! // generate_request(method, host, location, body)