<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -44,7 +44,7 @@ class ExceptionNotifier &lt; ActionMailer::Base
     from       sender_address
 
     body       data.merge({ :controller =&gt; controller, :request =&gt; request,
-                  :exception =&gt; exception, :host =&gt; request.env[&quot;HTTP_HOST&quot;],
+                  :exception =&gt; exception, :host =&gt; (request.env[&quot;HTTP_X_FORWARDED_HOST&quot;] || request.env[&quot;HTTP_HOST&quot;]),
                   :backtrace =&gt; sanitize_backtrace(exception.backtrace),
                   :rails_root =&gt; rails_root, :data =&gt; data,
                   :sections =&gt; sections })
@@ -62,8 +62,7 @@ class ExceptionNotifier &lt; ActionMailer::Base
     end
 
     def rails_root
-      return @rails_root if @rails_root
-      @rails_root = Pathname.new(RAILS_ROOT).cleanpath.to_s
+      @rails_root ||= Pathname.new(RAILS_ROOT).cleanpath.to_s
     end
 
 end</diff>
      <filename>lib/exception_notifier.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,4 @@
-* URL: &lt;%= @request.protocol %&gt;&lt;%= @host %&gt;&lt;%= @request.request_uri %&gt;
+* URL       : &lt;%= @request.protocol %&gt;&lt;%= @host %&gt;&lt;%= @request.request_uri %&gt;
+* IP address: &lt;%= @request.env[&quot;HTTP_X_FORWARDED_FOR&quot;] || @request.env[&quot;REMOTE_ADDR&quot;] %&gt;
 * Parameters: &lt;%= filter_sensitive_post_data_parameters(@request.parameters).inspect %&gt;
 * Rails root: &lt;%= @rails_root %&gt;</diff>
      <filename>views/exception_notifier/_request.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7f1d1743348c45bc0cbd7e6dd1b9fc55f4ed6406</id>
    </parent>
  </parents>
  <author>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </author>
  <url>http://github.com/isaacfeliu/exception_notification/commit/07a9bf97fe7e9a914504849325cc180e61a1998b</url>
  <id>07a9bf97fe7e9a914504849325cc180e61a1998b</id>
  <committed-date>2007-11-23T09:22:21-08:00</committed-date>
  <authored-date>2007-11-23T09:22:21-08:00</authored-date>
  <message>consider the X-FORWARDED-HOST value before HOST. Include the IP address of the remote request.</message>
  <tree>de87c98fffd17ebaa70798fa0d61ba0ccb860c40</tree>
  <committer>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </committer>
</commit>
