1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

Fix identifier rename on non-Linux file

I guess the tooling only refactors for your OS!
This commit is contained in:
Matthew Holt 2022-09-14 11:33:57 -06:00
parent 17f9f974f8
commit 89a086dec2
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -15,7 +15,7 @@ import (
func ListenTimeout(network, addr string, keepAlivePeriod time.Duration) (net.Listener, error) {
// check to see if plugin provides listener
if ln, err := getListenerFromPlugin(network, addr); err != nil || ln != nil {
return acceptPipe(ln), err
return pipeable(ln), err
}
lnKey := listenerKey(network, addr)
@ -29,7 +29,7 @@ func ListenTimeout(network, addr string, keepAlivePeriod time.Duration) (net.Lis
}
return nil, err
}
return &sharedListener{Listener: acceptPipe(ln), key: lnKey}, nil
return &sharedListener{Listener: pipeable(ln), key: lnKey}, nil
})
if err != nil {
return nil, err