Skip to content

Commit

Permalink
chore: update external resources path
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Dec 4, 2024
1 parent 4cea6a0 commit c33d75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geoip-asn.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GeoipAsn {

// public
get ( ipAddress ) {
mmdb ??= new MMDB( fs.readFileSync( resource.location + "/GeoLite2-ASN.mmdb" ), { cache } );
mmdb ??= new MMDB( fs.readFileSync( resource.getResourcePath( "GeoLite2-ASN.mmdb" ) ), { cache } );

return mmdb.get( ipAddress );
}
Expand Down

0 comments on commit c33d75b

Please sign in to comment.