mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-04 19:13:19 -04:00
Changed port value in UDPServer to be more accurate
This commit is contained in:
@@ -63,12 +63,12 @@ public class UDPServer {
|
||||
public UDPServer(InetAddress bindAddr, int port, int packetSize) throws SocketException {
|
||||
this.callback = null;
|
||||
this.packetSize = packetSize;
|
||||
this.port = port;
|
||||
inbound = new LinkedBlockingQueue<UDPPacket>();
|
||||
if (port > 0)
|
||||
socket = new DatagramSocket(port, bindAddr);
|
||||
else
|
||||
socket = new DatagramSocket();
|
||||
this.port = socket.getLocalPort();
|
||||
updater = new UDPUpdater();
|
||||
updater.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user