mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-17 06:29:15 +01:00
Fixed remoteIP build issue
This commit is contained in:
parent
09ae1e7ed1
commit
1b624cdfdb
@ -394,12 +394,15 @@ void TransportProcessor::readStream(Connection *c)
|
||||
c->appProtocolHandler = (appProtocolCallback)echoProcessor;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DCCEX_ENABLED
|
||||
DIAG(F("\nReceived packet of size:[%d]\n"), count);
|
||||
#else
|
||||
IPAddress remote = c->client->remoteIP();
|
||||
buffer[count] = '\0'; // terminate the string properly
|
||||
DIAG(F("\nReceived packet of size:[%d] from [%d.%d.%d.%d]\n"), count, remote[0], remote[1], remote[2], remote[3]);
|
||||
#endif
|
||||
buffer[count] = '\0'; // terminate the string properly
|
||||
DIAG(F("Client #: [%d]\n"), c->id);
|
||||
DIAG(F("Packet: [%e]\n"), buffer);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user