NetMarshalServer fix localAddress bug.
This commit is contained in:
parent
1949c848b8
commit
ae73866bf1
@ -108,7 +108,7 @@ public class NetMarshalServer implements Closeable {
|
||||
* @throws IllegalArgumentException Fragmentation options failed validation.
|
||||
*/
|
||||
public NetMarshalServer(DatagramSocket socketIn, IPacketFactory factory, PacketLoader loader, FragmentationOptions fragmentationOptions) {
|
||||
this((socketIn == null) ? null : socketIn.getInetAddress(), (socketIn == null) ? -1 : socketIn.getLocalPort(), factory, loader, socketIn == null, fragmentationOptions, socketIn);
|
||||
this((socketIn == null) ? null : socketIn.getLocalAddress(), (socketIn == null) ? -1 : socketIn.getLocalPort(), factory, loader, socketIn == null, fragmentationOptions, socketIn);
|
||||
dsocket = socketIn;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user