mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 14:48:22 +00:00
Fix typo in ConsoleLogger
This commit is contained in:
parent
290f236157
commit
908ff3689d
1 changed files with 3 additions and 3 deletions
|
@ -44,14 +44,14 @@ pub trait Logger {
|
||||||
|
|
||||||
pub struct ConsoleLogger {
|
pub struct ConsoleLogger {
|
||||||
arp: bool,
|
arp: bool,
|
||||||
_eth: bool,
|
eth: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ConsoleLogger {
|
impl ConsoleLogger {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
ConsoleLogger {
|
ConsoleLogger {
|
||||||
arp: true,
|
arp: true,
|
||||||
_eth: false,
|
eth: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ impl Logger for ConsoleLogger {
|
||||||
self.arp
|
self.arp
|
||||||
}
|
}
|
||||||
fn eth_enabled(&self) -> bool {
|
fn eth_enabled(&self) -> bool {
|
||||||
self.arp
|
self.eth
|
||||||
}
|
}
|
||||||
fn arp_recv_whohas(&self, p: &ArpPacket) {
|
fn arp_recv_whohas(&self, p: &ArpPacket) {
|
||||||
println!(
|
println!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue