From 426a1c6d5936c6e9665a8bee08195df2a6e78b95 Mon Sep 17 00:00:00 2001 From: Peter Wall Date: Tue, 17 Dec 2024 16:07:17 +0100 Subject: [PATCH] add remote_ip --- app/controllers/api/cloud_inits_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/cloud_inits_controller.rb b/app/controllers/api/cloud_inits_controller.rb index cce996c..bf0b204 100644 --- a/app/controllers/api/cloud_inits_controller.rb +++ b/app/controllers/api/cloud_inits_controller.rb @@ -11,6 +11,8 @@ def show if [ :password ].include?(variable.to_sym) helper.public_send(variable) + elsif [ :remote_ip ].include?(variable.to_sym) + request.remote_ip else helper.config(variable) end