diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/custodian/protocoltest/smtprelay.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/lib/custodian/protocoltest/smtprelay.rb b/lib/custodian/protocoltest/smtprelay.rb index d3a223a..7cf22cc 100644 --- a/lib/custodian/protocoltest/smtprelay.rb +++ b/lib/custodian/protocoltest/smtprelay.rb @@ -64,6 +64,10 @@ module Custodian          hostname = "localhost.localdomain"          if ( File.exists?( "/etc/hostname" ) ) +          File.readlines("/etc/hostname" ).each do |line| +            hostname = line if ( !line.nil? ) +            hostname.chomp! +          end          end          hostname | 
