Skip to content

Commit

Permalink
Support IPv6 for log collection
Browse files Browse the repository at this point in the history
Unwrap [] parenthesis around IPv6 address

https://bugzilla.redhat.com/show_bug.cgi?id=1452224
  • Loading branch information
isimluk committed Jun 9, 2017
1 parent be8613f commit 65dd7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/file_depot_ftp.rb
Expand Up @@ -63,7 +63,7 @@ def with_connection(cred_hash = nil)
end

def connect(cred_hash = nil)
host = URI.split(URI.encode(uri))[2]
host = URI(uri).hostname

begin
_log.info("Connecting to #{self.class.name}: #{name} host: #{host}...")
Expand Down

0 comments on commit 65dd7a6

Please sign in to comment.