Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use vespa_hostname from Environment. #9

Merged
merged 1 commit into from Mar 15, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -133,8 +133,7 @@ def parse_args(usage = false)

def get_full_hostname(hostname)
if hostname == "localhost"
full_hostname = Socket.gethostname
raise "Unable to lookup localhost." unless full_hostname
full_hostname = Environment.instance.vespa_hostname
elsif /vmnet\.yahoo\.com$/ =~ hostname
full_hostname = hostname
else
@@ -35,7 +35,8 @@ def create_tls_client(endpoint, object)
# it running before starting the proper client..!
# Luckily, setting a nil service object disallows anyone from calling
# remote methods on ourselves. Or so the docs say, anyway.
DRb.start_service(nil, nil, @ssl_config.to_drb_openssl_config)
selfuri = "drbssl://#{Environment.instance.vespa_hostname}:0"
DRb.start_service(selfuri, nil, @ssl_config.to_drb_openssl_config)
uri = tls_endpoint_uri(endpoint)
DRbObject.new(nil, uri)
end
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.