Update CI configs to v0.7.2

Update lint scripts and CI configs.
This commit is contained in:
Pion
2022-04-24 02:56:44 +00:00
committed by Sean DuBois
parent 9b523704bb
commit 16e03db8f8
16 changed files with 132 additions and 67 deletions

4
url.go
View File

@@ -1,6 +1,7 @@
package ice
import (
"errors"
"net"
"net/url"
"strconv"
@@ -122,7 +123,8 @@ func ParseURL(raw string) (*URL, error) { //nolint:gocognit
var rawPort string
if u.Host, rawPort, err = net.SplitHostPort(rawParts.Opaque); err != nil {
if e, ok := err.(*net.AddrError); ok {
var e *net.AddrError
if errors.As(err, &e) {
if e.Err == "missing port in address" {
nextRawURL := u.Scheme.String() + ":" + rawParts.Opaque
switch {