Don't attempt SMS to iran (#355)

This commit is contained in:
Moxie Marlinspike 2021-01-19 09:13:37 -08:00 committed by GitHub
parent f7388f6492
commit b25da8ceaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,10 @@ public class AccountController {
throw new WebApplicationException(Response.status(400).build());
}
if (number.startsWith("+98")) {
transport = "voice";
}
String requester = Arrays.stream(forwardedFor.split(","))
.map(String::trim)
.reduce((a, b) -> b)