File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
tunnel/src/main/java/com/wireguard/config Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
package com .wireguard .config ;
7
7
8
- import android .widget .Toast ;
9
-
10
8
import com .wireguard .util .NonNullForAll ;
11
9
12
10
import org .xbill .DNS .Lookup ;
25
23
import java .net .UnknownHostException ;
26
24
import java .time .Duration ;
27
25
import java .time .Instant ;
28
- import java .util .List ;
29
26
import java .util .Optional ;
30
27
import java .util .regex .Pattern ;
31
28
32
29
import androidx .annotation .Nullable ;
33
30
34
- import static com .wireguard .android .BR .endpoint ;
35
- import static com .wireguard .android .BR .endpoint ;
36
-
37
31
38
32
/**
39
33
* An external endpoint (host and port) used to connect to a WireGuard {@link Peer}.
@@ -150,7 +144,7 @@ public Optional<InetEndpoint> getResolved() {
150
144
if (Pattern .matches (IP_PORT_REGEX , recordValue )) {
151
145
final String [] hostPort = Pattern .compile (":" ).split (recordValue );
152
146
final int resPort = Integer .parseInt (hostPort [1 ], 10 );
153
- if (resPort > 0 && resPort <=65535 ) {
147
+ if (resPort > 0 && resPort <= 65535 ) {
154
148
resolved = new InetEndpoint (hostPort [0 ], true , resPort );
155
149
}
156
150
}
You can’t perform that action at this time.
0 commit comments