Skip to content

Commit

Permalink
ALL-8523: relax ssrf checks and allow tatum gateway nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Kaštovský committed Aug 25, 2024
1 parent c355bdd commit b0184ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/rpc/generic/LoadBalancer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export class LoadBalancer implements AbstractRpcInterface {
private checkSSRF(url: string): boolean {
try {
const parsedUrl = new URL(url)
return parsedUrl.hostname.endsWith('rpc.tatum.io')
return parsedUrl.hostname.endsWith('tatum.io')
} catch (e) {
Utils.log({
id: this.id,
Expand All @@ -358,7 +358,7 @@ export class LoadBalancer implements AbstractRpcInterface {
return typeMatch
}

// If noSSRFCheck is false or undefined, check if the URL ends with 'rpc.tatum.io'.
// If noSSRFCheck is false or undefined, check if the URL ends with 'tatum.io'.
const ssrfCheckPassed = this.checkSSRF(node.url)

// Log if the URL doesn't pass the SSRF check
Expand Down

0 comments on commit b0184ff

Please sign in to comment.