mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 06:34:40 +03:00
update to latest adns, synced with Go's net
This commit is contained in:
4
vendor/github.com/mjl-/adns/dial.go
generated
vendored
4
vendor/github.com/mjl-/adns/dial.go
generated
vendored
@ -7,10 +7,12 @@ package adns
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
|
||||
"github.com/mjl-/adns/internal/bytealg"
|
||||
)
|
||||
|
||||
func parseNetwork(ctx context.Context, network string, needsProto bool) (afnet string, proto int, err error) {
|
||||
i := last(network, ':')
|
||||
i := bytealg.LastIndexByteString(network, ':')
|
||||
if i < 0 { // no colon
|
||||
switch network {
|
||||
case "tcp", "tcp4", "tcp6":
|
||||
|
Reference in New Issue
Block a user