Lowercase endpoint in exception message
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
b2c9b3500c
commit
e1965f121c
@ -44,7 +44,7 @@ public final class InetEndpoint {
|
|||||||
|
|
||||||
public static InetEndpoint parse(final String endpoint) {
|
public static InetEndpoint parse(final String endpoint) {
|
||||||
if (FORBIDDEN_CHARACTERS.matcher(endpoint).find())
|
if (FORBIDDEN_CHARACTERS.matcher(endpoint).find())
|
||||||
throw new IllegalArgumentException("Forbidden characters in Endpoint");
|
throw new IllegalArgumentException("Forbidden characters in endpoint");
|
||||||
final URI uri;
|
final URI uri;
|
||||||
try {
|
try {
|
||||||
uri = new URI("wg://" + endpoint);
|
uri = new URI("wg://" + endpoint);
|
||||||
|
Loading…
Reference in New Issue
Block a user