Skip to content

Commit e1406bf

Browse files
fix: default to ipv4address if listen address is null (#2422)
1 parent 03c20ac commit e1406bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ public void SetConnectionData(string ipv4Address, ushort port, string listenAddr
637637
{
638638
Address = ipv4Address,
639639
Port = port,
640-
ServerListenAddress = listenAddress ?? string.Empty
640+
ServerListenAddress = listenAddress ?? ipv4Address
641641
};
642642

643643
SetProtocol(ProtocolType.UnityTransport);

0 commit comments

Comments
 (0)