NetMarshalServer fix localAddress bug.

This commit is contained in:
Captain ALM 2023-05-20 20:42:34 +01:00
parent 1949c848b8
commit ae73866bf1
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}