summaryrefslogtreecommitdiff
path: root/listen_unix.go
diff options
context:
space:
mode:
authorSteffen Brüheim <ueffel@gmail.com>2023-02-08 18:05:09 +0100
committerGitHub <noreply@github.com>2023-02-08 10:05:09 -0700
commit536c28d4dc4b048d710bd37903857f0de15ab3c5 (patch)
tree4107376cdb131592cb2e417bb54b65a8f2531e67 /listen_unix.go
parentc77a6bea66b30ea88cd991671bf67669c80ffcdd (diff)
core: Support Windows absolute paths for UDS proxy upstreams (#5114)
* added some tests for parseUpstreamDialAddress Test 4 fails because it produces "[[::1]]:80" instead of "[::1]:80" * support absolute windows path in unix reverse proxy address * make IsUnixNetwork public, support +h2c and reuse it * add new tests
Diffstat (limited to 'listen_unix.go')
-rw-r--r--listen_unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/listen_unix.go b/listen_unix.go
index dc955d8..7ea6745 100644
--- a/listen_unix.go
+++ b/listen_unix.go
@@ -34,7 +34,7 @@ import (
// reuseUnixSocket copies and reuses the unix domain socket (UDS) if we already
// have it open; if not, unlink it so we can have it. No-op if not a unix network.
func reuseUnixSocket(network, addr string) (any, error) {
- if !isUnixNetwork(network) {
+ if !IsUnixNetwork(network) {
return nil, nil
}
@@ -103,7 +103,7 @@ func listenTCPOrUnix(ctx context.Context, lnKey string, network, address string,
// reusePort sets SO_REUSEPORT. Ineffective for unix sockets.
func reusePort(network, address string, conn syscall.RawConn) error {
- if isUnixNetwork(network) {
+ if IsUnixNetwork(network) {
return nil
}
return conn.Control(func(descriptor uintptr) {