Don't attempt SMS to iran (#355)
This commit is contained in:
parent
f7388f6492
commit
b25da8ceaa
|
@ -186,6 +186,10 @@ public class AccountController {
|
||||||
throw new WebApplicationException(Response.status(400).build());
|
throw new WebApplicationException(Response.status(400).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (number.startsWith("+98")) {
|
||||||
|
transport = "voice";
|
||||||
|
}
|
||||||
|
|
||||||
String requester = Arrays.stream(forwardedFor.split(","))
|
String requester = Arrays.stream(forwardedFor.split(","))
|
||||||
.map(String::trim)
|
.map(String::trim)
|
||||||
.reduce((a, b) -> b)
|
.reduce((a, b) -> b)
|
||||||
|
|
Loading…
Reference in New Issue