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
},*/
}
drac.go
http.Transport Dialoverride 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...