2023-01-27 01:10:27 +07:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2024-01-04 16:28:16 +07:00
|
|
|
* Copyright (c) 2022-2024, daeuniverse Organization <dae@v2raya.org>
|
2023-01-27 01:10:27 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
package dialer
|
|
|
|
|
|
|
|
import (
|
2024-01-01 16:19:18 +07:00
|
|
|
D "github.com/daeuniverse/outbound/dialer"
|
2024-04-24 01:22:50 +07:00
|
|
|
"github.com/daeuniverse/outbound/netproxy"
|
2023-01-27 01:10:27 +07:00
|
|
|
)
|
|
|
|
|
2023-07-23 19:36:57 +07:00
|
|
|
func NewBlockDialer(option *GlobalOption, dialCallback func()) (netproxy.Dialer, *Property) {
|
2024-01-01 16:19:18 +07:00
|
|
|
d, _p := D.NewBlockDialer(&option.ExtraOption, dialCallback)
|
|
|
|
return d, &Property{
|
|
|
|
Property: *_p,
|
|
|
|
SubscriptionTag: "",
|
2023-07-23 19:36:57 +07:00
|
|
|
}
|
2023-01-27 01:10:27 +07:00
|
|
|
}
|