Skip to content

Commit

Permalink
add remote_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
p-wall committed Dec 17, 2024
1 parent fdb0a6c commit 426a1c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/api/cloud_inits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 426a1c6

Please sign in to comment.