Browse Source

engine: net_ws: fix printing multicast IPv6 address

pull/2/head
Alibek Omarov 1 year ago
parent
commit
c1c27c5f18
  1. 4
      engine/common/net_ws.c

4
engine/common/net_ws.c

@ -723,7 +723,7 @@ const char *NET_AdrToString( const netadr_t a )
if( a.type == NA_LOOPBACK ) if( a.type == NA_LOOPBACK )
return "loopback"; return "loopback";
if( a.type6 == NA_IP6 ) if( a.type6 == NA_IP6 || a.type6 == NA_MULTICAST_IP6 )
{ {
uint8_t ip6[16]; uint8_t ip6[16];
@ -750,7 +750,7 @@ const char *NET_BaseAdrToString( const netadr_t a )
if( a.type == NA_LOOPBACK ) if( a.type == NA_LOOPBACK )
return "loopback"; return "loopback";
if( a.type6 == NA_IP6 ) if( a.type6 == NA_IP6 || a.type6 == NA_MULTICAST_IP6 )
{ {
uint8_t ip6[16]; uint8_t ip6[16];

Loading…
Cancel
Save