Removed hostnames from user profiles.

This commit is contained in:
Logan Fick
2018-09-13 20:48:24 -04:00
parent f3908410c8
commit 0de6b08b4e
2 changed files with 1 additions and 7 deletions

View File

@@ -22,12 +22,6 @@ class UsersController < ApplicationController
flash.now[:alert] = "An error occured while checking if this user is banned from the server!"
@ban_json = nil
end
begin
@hostname = Resolv.new.getname(@user.last_ip)
rescue
@hostname = "No hostname found."
end
end
# SIGNUP

View File

@@ -85,7 +85,7 @@
<% if mod? || @user.is?(current_user) %>
<tr>
<td><b>Last IP</b></td>
<td><%= @user.last_ip %> (<%= @hostname %>)</td>
<td><%= @user.last_ip %></td>
</tr>
<tr>
<td><b>Email</b></td>