mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
Switch to InetSockAddress instead of InetAddress so we can send the port # to java as well
This commit is contained in:
parent
73d68c0c98
commit
d1ed269537
10 changed files with 98 additions and 26 deletions
|
@ -27,13 +27,13 @@
|
|||
|
||||
package com.zerotierone.sdk;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.net.InetSocketAddress;
|
||||
|
||||
/**
|
||||
* Physical network path to a peer
|
||||
*/
|
||||
public final class PeerPhysicalPath {
|
||||
private InetAddress address;
|
||||
private InetSocketAddress address;
|
||||
private long lastSend;
|
||||
private long lastReceive;
|
||||
private boolean fixed;
|
||||
|
@ -45,7 +45,7 @@ public final class PeerPhysicalPath {
|
|||
/**
|
||||
* Address of endpoint
|
||||
*/
|
||||
public final InetAddress address() {
|
||||
public final InetSocketAddress address() {
|
||||
return address;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue