aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/sender.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-02 17:33:42 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-02 17:33:42 +0100
commit10141ed04af966ee280dcea1d733e0b036127afc (patch)
tree21dd6e4f4ece87288424fce7fdb866378c0edc5b /lib/mauve/sender.rb
parent25b32914b72a5f709eca773f3511cc89c2e710c2 (diff)
parentf07c5705d4ec82f4ba851409d4a92a9f66820df8 (diff)
merge
Diffstat (limited to 'lib/mauve/sender.rb')
-rw-r--r--lib/mauve/sender.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/sender.rb b/lib/mauve/sender.rb
index 8194180..ef06d0f 100644
--- a/lib/mauve/sender.rb
+++ b/lib/mauve/sender.rb
@@ -108,7 +108,7 @@ module Mauve
#
# Must have a source, so default to hostname if user doesn't care
- update.source ||= `hostname -f`.chomp
+ update.source ||= Socket.gethostname
#
# Make sure all alerts default to "-r now"