mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-19 23:46:02 +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;
|
c->appProtocolHandler = (appProtocolCallback)echoProcessor;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef DCCEX_ENABLED
|
||||||
|
DIAG(F("\nReceived packet of size:[%d]\n"), count);
|
||||||
|
#else
|
||||||
IPAddress remote = c->client->remoteIP();
|
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]);
|
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("Client #: [%d]\n"), c->id);
|
||||||
DIAG(F("Packet: [%e]\n"), buffer);
|
DIAG(F("Packet: [%e]\n"), buffer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user