Skip to content
Snippets Groups Projects
  • Torbjörn Lönnemark's avatar
    ef5b7f1a
    resolve_ipnets(): Canonicalize resolved addresses · ef5b7f1a
    Torbjörn Lönnemark authored
    The version of JRuby included with puppetserver (as of 7.9.5) does not
    canonicalize IPv6 addresses returned by Socket.getaddrinfo, and thus
    returns them without compressing runs of zeros. For example, running
    resolve_ipnets under puppetserver would return 2001:0db8:0:0:0:0:0:1
    if running server-less returned 2001:0db8::1.
    
    Work around the issue by converting resolved addresses to IPAddr
    objects, then back to strings.
    ef5b7f1a
    History
    resolve_ipnets(): Canonicalize resolved addresses
    Torbjörn Lönnemark authored
    The version of JRuby included with puppetserver (as of 7.9.5) does not
    canonicalize IPv6 addresses returned by Socket.getaddrinfo, and thus
    returns them without compressing runs of zeros. For example, running
    resolve_ipnets under puppetserver would return 2001:0db8:0:0:0:0:0:1
    if running server-less returned 2001:0db8::1.
    
    Work around the issue by converting resolved addresses to IPAddr
    objects, then back to strings.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.