Project

General

Profile

Actions

Bug #4529

closed

Discovery not working well with foreman.server=https://abc

Added by Lukas Zapletal over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

17:07      gwmngilfen | lzap: ah hang on
17:07      gwmngilfen | discover_by_dns looks wrong
17:08      gwmngilfen | it's figuring out server_name from foreman.server=.... but then it does a direct DNS lookup on that name without stripping https://
17:08      gwmngilfen | line 42
17:09      gwmngilfen | you probably want to do TCPSocket.gethostbyname(server_name.gsub('https://',''))
17:09            lzap | oh ok so I found a bug, will fix
17:09      gwmngilfen | or do it properly with URI.parse and then you the host part

Actions

Also available in: Atom PDF