mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-10 15:28:53 +07:00
21 lines
413 B
Go
21 lines
413 B
Go
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Copyright (c) since 2023, v2rayA Organization <team@v2raya.org>
|
|
*/
|
|
|
|
package dialer
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type blockDialer struct{}
|
|
|
|
func (*blockDialer) Dial(network string, addr string) (c net.Conn, err error) {
|
|
return nil, net.ErrClosed
|
|
}
|
|
|
|
func NewBlockDialer(option *GlobalOption) *Dialer {
|
|
return newDialer(&blockDialer{}, option, true, "block", "block", "")
|
|
}
|