Revert "net/tlsdial: add memory-optimized TLS cert verification path for iOS"

This reverts commit 6fcbd4c4d4.

Decided to put it in tailscale/go's crypto/x509 instead.
This commit is contained in:
Brad Fitzpatrick
2020-04-27 08:13:37 -07:00
parent 5d67365cc9
commit 172d72a060
3 changed files with 0 additions and 69 deletions

View File

@@ -16,7 +16,6 @@ import (
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"reflect"
"strconv"
@@ -116,10 +115,6 @@ func NewDirect(opts Options) (*Direct, error) {
return nil, errors.New("controlclient.New: no server URL specified")
}
opts.ServerURL = strings.TrimRight(opts.ServerURL, "/")
serverURL, err := url.Parse(opts.ServerURL)
if err != nil {
return nil, err
}
if opts.TimeNow == nil {
opts.TimeNow = time.Now
}