From a937bfd3da9c9aa24fd0bdc81307eabb3d46b652 Mon Sep 17 00:00:00 2001 From: Bartosz Wieczorek Date: Fri, 8 Aug 2025 14:57:11 +0200 Subject: [PATCH] enable read ip from pam --- PAM/ssh/include/rublon/init.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);