Change 'bind' CLI option to 'host'. Set default to 127.0.0.1. Closes #47.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
* Add Wiki#size to efficiently count pages without loading them.
|
||||
* Add the correct content type when serving files from the frontend.
|
||||
* Wiki#pages come back sorted by Page#title.
|
||||
* Add --host option and default it to 127.0.0.1.
|
||||
* Bug Fixes
|
||||
* Increase minimum Sanitize version requirement to 1.1.0.
|
||||
1.0.x versions of Sanitize require Hpricot instead of Nokogiri
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ require 'rubygems'
|
||||
require 'gollum'
|
||||
|
||||
exec = {}
|
||||
options = {}
|
||||
options = { 'bind' => '127.0.0.1' }
|
||||
opts = OptionParser.new do |opts|
|
||||
opts.banner = help
|
||||
|
||||
@@ -26,7 +26,7 @@ opts = OptionParser.new do |opts|
|
||||
options['port'] = port.to_i
|
||||
end
|
||||
|
||||
opts.on("--bind [HOST]", "Hostname or IP address to listen on (default 0.0.0.0).") do |host|
|
||||
opts.on("--host [HOST]", "Hostname or IP address to listen on (default 0.0.0.0).") do |host|
|
||||
options['bind'] = host
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user