Skip to content

Commit

Permalink
add: check to ensure --disable-ipv4 & --disable-ipv6 aren't used at t…
Browse files Browse the repository at this point in the history
…he same time
  • Loading branch information
CorentinB committed Sep 24, 2024
1 parent c3339fd commit e416610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/crawl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ func GenerateCrawlConfig(config *config.Config) (*Crawl, error) {
c.DisableIPv4 = config.DisableIPv4
c.DisableIPv6 = config.DisableIPv6

if c.DisableIPv4 && c.DisableIPv6 {
c.Log.Fatal("Both IPv4 and IPv6 are disabled, at least one of them must be enabled.")
}

// Crawl HQ settings
c.UseHQ = config.HQ
c.HQProject = config.HQProject
Expand Down

0 comments on commit e416610

Please sign in to comment.