Allow emails as usernames

This commit is contained in:
Lauri Kasanen
2023-11-06 11:07:01 +02:00
parent 7350b12b3d
commit 6cd50869c2
3 changed files with 4 additions and 4 deletions

View File

@@ -814,7 +814,7 @@ static void upgradeClientToUdp(const network::GetAPIMessager::action_data &act,
inet_ntop(AF_INET, &act.udp.ip, buf, 32);
const char * const who = (*ci)->getPeerEndpoint();
const char *start = strchr(who, '@');
const char *start = strrchr(who, '@');
if (!start)
continue;
start++;