Don't attempt SMS to iran (#355)

This commit is contained in:
Moxie Marlinspike authored and GitHub committed 2021-01-19 09:13:37 -08:00
1 parent f7388f6492
commit b25da8ceaa
1 file changed
+4
@@ -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)