Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Commit b0fa225

Browse files
committed
configure DNS search
1 parent 26c72a4 commit b0fa225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def nodejs_uri
5656
# Resolve the SRV records for the hostname in the URL
5757
def expand_url(url)
5858
uri = URI(url)
59-
resolver = Resolv::DNS.new()
59+
resolver = Resolv::DNS.new(:search => [ENV["_SERVICE_DISCOVERY_NAME"]])
6060
srv = resolver.getresource("_#{uri.scheme}._tcp.#{uri.host}", Resolv::DNS::Resource::IN::SRV)
6161
uri.host = srv.target.to_s
6262
uri.port = srv.port.to_s

0 commit comments

Comments
 (0)