Files
dae/component/outbound/dialer/block.go

21 lines
443 B
Go
Raw Normal View History

2023-01-27 02:10:27 +08:00
/*
* SPDX-License-Identifier: AGPL-3.0-only
2023-01-28 13:56:06 +08:00
* Copyright (c) since 2023, v2rayA Organization <team@v2raya.org>
2023-01-27 02:10:27 +08:00
*/
package dialer
import (
"net"
)
type blockDialer struct{}
func (*blockDialer) Dial(network string, addr string) (c net.Conn, err error) {
return nil, net.ErrClosed
}
2023-01-28 01:50:21 +08:00
func NewBlockDialer(option *GlobalOption) *Dialer {
2023-01-28 15:47:43 +08:00
return NewDialer(&blockDialer{}, option, InstanceOption{Check: false}, true, "block", "block", "")
2023-01-27 02:10:27 +08:00
}