-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support listening on specific interfaces
This allows "http_port host:port" configuration constructs, instead of just specifying the port and listening on all interfaces. Pre-1.0.0 versions used to allow "host:port" as port/title arg, because the input wasn't sufficiently checked.
- Loading branch information
Showing
4 changed files
with
93 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# fragment for <%= @protocol %>_port <%= @port %> | ||
<%= @protocol %>_port <%= @port %> <%= @options %> | ||
<% | ||
if @_host == nil then | ||
host_port = @_port | ||
else | ||
host_port = "#{@_host}:#{@_port}" | ||
end | ||
-%> | ||
# fragment for <%= @protocol %>_port <%= host_port %> | ||
<%= @protocol %>_port <%= host_port %> <%= @options %> | ||
|