mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 03:08:07 +01:00
Don't attempt SMS to iran (#355)
This commit is contained in:
committed by
GitHub
parent
f7388f6492
commit
b25da8ceaa
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user