Skip to content

Commit

Permalink
Pass options to server
Browse files Browse the repository at this point in the history
  • Loading branch information
dscottboggs committed Jan 7, 2020
1 parent 8a6bfea commit 700bdb2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
Binary file renamed run → server
Binary file not shown.
22 changes: 0 additions & 22 deletions src/minimal-example.cr

This file was deleted.

2 changes: 1 addition & 1 deletion src/run.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ server = HTTP::Server.new do |context|
end
end

addr = server.bind_tcp config.port.to_i
addr = server.bind_tcp config.bind_address, config.port.to_i
puts "Serving files under #{config.parent_dir} at #{addr}"

server.listen
Expand Down

0 comments on commit 700bdb2

Please sign in to comment.