diff options
| author | rectcoordsystem <37621004+rectcoordsystem@users.noreply.github.com> | 2024-11-21 08:27:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-21 08:27:09 +0900 |
| commit | 090e9392cdb1f584af94a6fb727fba95de3b8504 (patch) | |
| tree | 2512e24223106b08a141d913e068e9b8704b3ba5 /packages/backend/src/core/EmailService.ts | |
| parent | Merge commit from fork (diff) | |
| download | sharkey-090e9392cdb1f584af94a6fb727fba95de3b8504.tar.gz sharkey-090e9392cdb1f584af94a6fb727fba95de3b8504.tar.bz2 sharkey-090e9392cdb1f584af94a6fb727fba95de3b8504.zip | |
Merge commit from fork
* fix(backend): check target IP before sending HTTP request
* fix(backend): allow accessing private IP when testing
* Apply suggestions from code review
Co-authored-by: anatawa12 <anatawa12@icloud.com>
* fix(backend): lint and typecheck
* fix(backend): add isLocalAddressAllowed option to getAgentByUrl and send (HttpRequestService)
* fix(backend): allow fetchSummaryFromProxy, trueMail to access local addresses
---------
Co-authored-by: anatawa12 <anatawa12@icloud.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/core/EmailService.ts')
| -rw-r--r-- | packages/backend/src/core/EmailService.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/backend/src/core/EmailService.ts b/packages/backend/src/core/EmailService.ts index a176474b95..da198d0e42 100644 --- a/packages/backend/src/core/EmailService.ts +++ b/packages/backend/src/core/EmailService.ts @@ -312,6 +312,7 @@ export class EmailService { Accept: 'application/json', Authorization: truemailAuthKey, }, + isLocalAddressAllowed: true, }); const json = (await res.json()) as { |