diff --git a/src/realmd/AuthSocket.cpp b/src/realmd/AuthSocket.cpp index df1957556c4..5666266370d 100644 --- a/src/realmd/AuthSocket.cpp +++ b/src/realmd/AuthSocket.cpp @@ -711,7 +711,7 @@ void AuthSocket::_HandleLogonProof__PostRecv(std::shared_ptrfrom(sConfig.GetStringDefault("MailFrom", "")); mail->substitution("%username%", m_login); mail->substitution("%unlock_pin%", std::to_string(pin)); - mail->substitution("%originating_ip%", GetRemoteIpAddress()); + mail->substitution("%originating_ip%", GetRemoteIpString()); MailerService::get_global_mailer()->send(std::move(mail), [](SendgridMail::Result res)