mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-26 07:40:10 +07:00
feat/refactor: support the node-level proxy chain (#235)
* feat/refactor: support the chains node * docs: update example.dae * fix: order * fix: http --------- Co-authored-by: dae-bot[bot] <136105375+dae-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -17,9 +17,9 @@ var (
|
||||
|
||||
type Dialer struct {
|
||||
*GlobalOption
|
||||
InstanceOption InstanceOption
|
||||
InstanceOption
|
||||
netproxy.Dialer
|
||||
property Property
|
||||
property *Property
|
||||
|
||||
collectionFineMu sync.Mutex
|
||||
collections [6]*collection
|
||||
@ -57,7 +57,7 @@ type Property struct {
|
||||
type AliveDialerSetSet map[*AliveDialerSet]int
|
||||
|
||||
// NewDialer is for register in general.
|
||||
func NewDialer(dialer netproxy.Dialer, option *GlobalOption, iOption InstanceOption, property Property) *Dialer {
|
||||
func NewDialer(dialer netproxy.Dialer, option *GlobalOption, iOption InstanceOption, property *Property) *Dialer {
|
||||
var collections [6]*collection
|
||||
for i := range collections {
|
||||
collections[i] = newCollection()
|
||||
@ -92,6 +92,6 @@ func (d *Dialer) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (d *Dialer) Property() Property {
|
||||
func (d *Dialer) Property() *Property {
|
||||
return d.property
|
||||
}
|
||||
|
Reference in New Issue
Block a user