mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-16 06:01:21 +08:00
19 lines
409 B
Go
19 lines
409 B
Go
|
package dialer
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
|
||
|
E "github.com/sagernet/sing/common/exceptions"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
ErrorNoIpAddress = errors.New("no ip address")
|
||
|
ErrorInvalidedNetworkStack = errors.New("invalided network stack")
|
||
|
)
|
||
|
|
||
|
func errorsJoin(errs ...error) error {
|
||
|
// compatibility with golang<1.20
|
||
|
// maybe use errors.Join(errs...) is better after we drop the old version's support
|
||
|
return E.Errors(errs...)
|
||
|
}
|