Skip to content

Commit fe8fa5a

Browse files
committed
sockets: remove deprecated DialPipe, GetProxyEnv, DialerFromEnvironment
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 42faf79 commit fe8fa5a

3 files changed

Lines changed: 1 addition & 46 deletions

File tree

sockets/proxy.go

Lines changed: 0 additions & 31 deletions
This file was deleted.

sockets/sockets_unix.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@
22

33
package sockets
44

5-
import (
6-
"net"
7-
"net/http"
8-
"syscall"
9-
"time"
10-
)
5+
import "net/http"
116

127
func configureNpipeTransport(tr *http.Transport, proto, addr string) error {
138
return ErrProtocolNotAvailable
149
}
15-
16-
func dialPipe(_ string, _ time.Duration) (net.Conn, error) {
17-
return nil, syscall.EAFNOSUPPORT
18-
}

sockets/sockets_windows.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net"
66
"net/http"
7-
"time"
87

98
"github.com/Microsoft/go-winio"
109
)
@@ -17,7 +16,3 @@ func configureNpipeTransport(tr *http.Transport, proto, addr string) error {
1716
}
1817
return nil
1918
}
20-
21-
func dialPipe(addr string, timeout time.Duration) (net.Conn, error) {
22-
return winio.DialPipe(addr, &timeout)
23-
}

0 commit comments

Comments
 (0)