aboutsummaryrefslogtreecommitdiffstats
path: root/lib/un.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/un.rb')
-rw-r--r--lib/un.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/un.rb b/lib/un.rb
index cf817cafc5..24c6024c71 100644
--- a/lib/un.rb
+++ b/lib/un.rb
@@ -304,6 +304,7 @@ def httpd
|argv, options|
require 'webrick'
opt = options[:RequestTimeout] and options[:RequestTimeout] = opt.to_i
+ opt = options[:Port] and (options[:Port] = Integer(opt)) rescue nil
unless argv.empty?
options[:DocumentRoot] = argv.shift
end