mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-13 09:06:41 +00:00
parent
4b1a9b6cc1
commit
0e829bc418
2 changed files with 9 additions and 9 deletions
|
|
@ -183,14 +183,14 @@ func (na NetworkAddress) listen(ctx context.Context, portOffset uint, config net
|
|||
}
|
||||
}
|
||||
|
||||
if ln == nil {
|
||||
return nil, fmt.Errorf("unsupported network type: %s", na.Network)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if ln == nil {
|
||||
return nil, fmt.Errorf("unsupported network type: %s", na.Network)
|
||||
}
|
||||
|
||||
if IsUnixNetwork(na.Network) {
|
||||
isAbstractUnixSocket := strings.HasPrefix(address, "@")
|
||||
if !isAbstractUnixSocket {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue