mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Packet filter cli option (#2523)
## Issue Addressed N/A ## Proposed Changes Adds a cli option to disable packet filter in `lighthouse bootnode`. This is useful in running local testnets as the bootnode bans requests from the same ip(localhost) if the packet filter is enabled.
This commit is contained in:
@@ -32,7 +32,9 @@ pub async fn run<T: EthSpec>(config: BootNodeConfig<T>, log: slog::Logger) {
|
||||
|
||||
let discv5_config = {
|
||||
let mut builder = Discv5ConfigBuilder::new();
|
||||
builder.enable_packet_filter();
|
||||
if !config.disable_packet_filter {
|
||||
builder.enable_packet_filter();
|
||||
}
|
||||
if !config.auto_update {
|
||||
builder.disable_enr_update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user