Skip to content

Commit

Permalink
update host that is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
cplee committed Aug 10, 2018
1 parent 4662262 commit 8359d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def expand_url(url)

# lookup the SRV record and use if found
begin
srv = resolver.getresource("_#{uri.scheme}._tcp.#{host}", Resolv::DNS::Resource::IN::SRV)
srv = resolver.getresource(host, Resolv::DNS::Resource::IN::SRV)
uri.host = srv.target.to_s
uri.port = srv.port.to_s
rescue => e
Expand Down

0 comments on commit 8359d1b

Please sign in to comment.