mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Update dns_spoof.go
This commit is contained in:
parent
03951d9d01
commit
466105a1af
1 changed files with 4 additions and 4 deletions
|
@ -142,11 +142,11 @@ func (mod *DNSSpoofer) Configure() error {
|
|||
mod.Session.Firewall.EnableForwarding(true)
|
||||
}
|
||||
|
||||
ttl_, err := strconv.ParseUint(ttl, 10, 32)
|
||||
if err != nil {
|
||||
return fmt.Errorf("dns.spoof.ttl value must be an integer")
|
||||
_ttl, _ := strconv.ParseUint(ttl, 10, 32)
|
||||
if _ttl <= 0 {
|
||||
return fmt.Errorf("dns.spoof.ttl value must be 1 or higher")
|
||||
}
|
||||
mod.TTL = uint32(ttl_)
|
||||
mod.TTL = uint32(_ttl)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue