mirror of
https://github.com/revanced/jadb.git
synced 2025-02-14 11:06:48 +01:00
Allowing clients to specify host & port
This commit is contained in:
parent
f3031c254b
commit
0e02f9d7d8
@ -17,8 +17,13 @@ public class JadbConnection {
|
|||||||
|
|
||||||
public JadbConnection() throws UnknownHostException, IOException
|
public JadbConnection() throws UnknownHostException, IOException
|
||||||
{
|
{
|
||||||
host = "localhost";
|
this("localhost", DEFAULTPORT);
|
||||||
port = DEFAULTPORT;
|
}
|
||||||
|
|
||||||
|
public JadbConnection(String host, int port) throws UnknownHostException, IOException
|
||||||
|
{
|
||||||
|
this.host = host;
|
||||||
|
this.port = port;
|
||||||
|
|
||||||
main = createTransport();
|
main = createTransport();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user