Merge pull request #240 from zerotier/brenton/fix-cannot-resolve-symbol

Fix: Cannot resolve symbol 'localPort'
This commit is contained in:
Joseph Henry
2023-08-02 10:11:58 -07:00
committed by GitHub

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.
*