From ae73866bf1848886d904f6ed362fd7dd28c40bbf Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sat, 20 May 2023 20:42:34 +0100 Subject: [PATCH] NetMarshalServer fix localAddress bug. --- src/com/captainalm/lib/calmnet/marshal/NetMarshalServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/captainalm/lib/calmnet/marshal/NetMarshalServer.java b/src/com/captainalm/lib/calmnet/marshal/NetMarshalServer.java index 02aea3a..297d604 100644 --- a/src/com/captainalm/lib/calmnet/marshal/NetMarshalServer.java +++ b/src/com/captainalm/lib/calmnet/marshal/NetMarshalServer.java @@ -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; }