Skip to content

Commit

Permalink
Fix: Cannot resolve symbol 'localPort'
Browse files Browse the repository at this point in the history
Remove second bind() with unused backlog arg and identical impl as first
bind()
  • Loading branch information
bostick committed Aug 2, 2023
1 parent f5eee8d commit b4c7fd1
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 b4c7fd1

Please sign in to comment.