diff --git a/PAM/ssh/include/rublon/init.hpp b/PAM/ssh/include/rublon/init.hpp index 808d8a9..6e47fd1 100644 --- a/PAM/ssh/include/rublon/init.hpp +++ b/PAM/ssh/include/rublon/init.hpp @@ -64,9 +64,9 @@ class Init : public AuthenticationStep { auto ip = pam.ip(); // ip has always a value, can be empty but the value should be set -/* if(ip.get() != ""sv){ + if(ip.get() != ""sv){ params.AddMember("userIP", Value{pam.ip().get(), alloc}, alloc); - } else */{ + } else { getDefaultRouteIp(&memoryResource) // .and_then([&](const auto & ip) { params.AddMember("userIP", Value{ip.c_str(), alloc}, alloc);