Fix: Cannot resolve symbol 'localPort'

Remove second bind() with unused backlog arg and identical impl as first
bind()
This commit is contained in:
Brenton Bostick
2023-08-02 12:53:24 -04:00
parent f5eee8d25a
commit b4c7fd1a0f

View File

@@ -76,7 +76,6 @@ public class ZeroTierServerSocket {
/**
* 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
*/
@@ -86,19 +85,6 @@ public class ZeroTierServerSocket {
_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.
*