Skip to content

Commit

Permalink
[bf] prevent getSource() bombing out if the customer has no irrdb set
Browse files Browse the repository at this point in the history
ported from d67b493
  • Loading branch information
nickhilliard committed Jun 10, 2021
1 parent 69c3fb3 commit 80c3986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Tasks/Irrdb/UpdatePrefixDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class UpdatePrefixDb extends UpdateDb
public function update(): array {

foreach( $this->protocols() as $protocol ) {
if( $this->customer()->isRouteServerClient( $protocol ) && $this->customer()->isIrrdbFiltered() ) {
if( $this->customer()->isRouteServerClient( $protocol ) && $this->customer()->isIrrdbFiltered() && $this->customer()->getIRRDB() ) {
$this->bgpq3()->setSources( $this->customer()->getIRRDB()->getSource() );

$this->startTimer();
Expand Down

0 comments on commit 80c3986

Please sign in to comment.