From 8359d1b35543bfadc6e7da4ea2618adbe2fe7000 Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Fri, 10 Aug 2018 21:00:39 +0000 Subject: [PATCH] update host that is resolved --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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