Fix: Cannot resolve symbol 'localPort'
Remove second bind() with unused backlog arg and identical impl as first bind()
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user