Skip to content

IPv6 compatibility #20

@JayGoldberg

Description

@JayGoldberg

drac.go http.Transport Dial override seems to make IPv6 not work. Commenting this out is a fix (though Java web start/IcedTea don't seem to support it anyway).

But then we lose timeout...

        transport := &http.Transport{
                TLSClientConfig: &tls.Config{
                        InsecureSkipVerify: true,
                },
                /*Dial: func(netw, addr string) (net.Conn, error) {
                        deadline := time.Now().Add(5 * time.Second)
                        c, err := net.DialTimeout("tcp6", addr, time.Second*5)
                        if err != nil {
                                return nil, err
                        }
                        c.SetDeadline(deadline)
                        return c, nil
                },*/
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions