Skip to content

Commit

Permalink
Merge pull request #240 from zerotier/brenton/fix-cannot-resolve-symbol
Browse files Browse the repository at this point in the history
Fix: Cannot resolve symbol 'localPort'
  • Loading branch information
joseph-henry committed Aug 2, 2023
2 parents f5eee8d + b4c7fd1 commit 79636da
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/bindings/java/com/zerotier/sockets/ZeroTierServerSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public ZeroTierSocket accept() throws IOException
/**
* Bind to a local address
* @param localAddr Local address to which this socket should bind
* @param localPort Local port to which this socket should bind
*
* @exception IOException when an I/O error occurs
*/
Expand All @@ -86,19 +85,6 @@ public void bind(SocketAddress localAddr) throws IOException
_socket.bind(inetAddr.getHostName(), inetAddr.getPort());
}

/**
* Bind to a local address
* @param localAddr Local address to which this socket should bind
* @param localPort Local port to which this socket should bind
*
* @exception IOException when an I/O error occurs
*/
public void bind(SocketAddress localAddr, int backlog) throws IOException
{
InetSocketAddress inetAddr = (InetSocketAddress)localAddr;
_socket.bind(inetAddr.getHostName(), inetAddr.getPort());
}

/**
* Close the ZeroTierSocket.
*
Expand Down

0 comments on commit 79636da

Please sign in to comment.