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

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)