File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Unity/Assets/Scripts/Core/Network Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,10 @@ private void Recv()
276
276
{
277
277
realAddress = this . cache . ToStr ( 9 , messageLength - 9 ) ;
278
278
}
279
+ else
280
+ {
281
+ realAddress = this . ipEndPoint . ToString ( ) ;
282
+ }
279
283
280
284
remoteConn = BitConverter . ToUInt32 ( this . cache , 1 ) ;
281
285
localConn = BitConverter . ToUInt32 ( this . cache , 5 ) ;
@@ -298,7 +302,7 @@ private void Recv()
298
302
299
303
kChannel . RealAddress = realAddress ;
300
304
301
- IPEndPoint realEndPoint = kChannel . RealAddress == null ? kChannel . RemoteAddress : NetworkHelper . ToIPEndPoint ( kChannel . RealAddress ) ;
305
+ IPEndPoint realEndPoint = NetworkHelper . ToIPEndPoint ( kChannel . RealAddress ) ;
302
306
this . AcceptCallback ( kChannel . Id , realEndPoint ) ;
303
307
}
304
308
if ( kChannel . RemoteConn != remoteConn )
You can’t perform that action at this time.
0 commit comments