Skip to content

Please add an option to skip TLS verification for a client #20

@mike-shock

Description

@mike-shock

We are using our RocketChat server (community edition) in our local network, so we connect to it without TLS verification.

Please add an option to skip TLS verification for a client, I mean such a code:

http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}

or:

tr := &http.Transport {
        TLSClientConfig: &tls.Config{
            InsecureSkipVerify: true, // Disable TLS verification
        },
    }
    client := &http.Client{Transport: tr}

So that one may use it like this (or somehow like this):

client := gorocket.NewWithOptions(server,
  gorocket.WithTLSVerification(false),
)

Thanks in advance!

Regards,
Mike.

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