Skip to content

Commit

Permalink
ozone: fix ip check
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Mar 5, 2024
1 parent 4c7db5c commit 81f9d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ozone/src/mod-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ export class ModerationService {
const isSafeUrl = (url: URL) => {
if (url.protocol !== 'https:') return false
if (!url.hostname || url.hostname === 'localhost') return false
if (net.isIP(url.hostname) === 0) return false
if (net.isIP(url.hostname) !== 0) return false
return true
}

Expand Down

0 comments on commit 81f9d69

Please sign in to comment.