actually fix that bug
This commit is contained in:
parent
922c1f1fb3
commit
4d2e355011
3 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue