diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 10afcf0..696c830 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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