mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-26 11:44:22 -04:00
add initialization for health ping
This commit is contained in:
parent
b797eb427a
commit
24a5e34ce0
@ -91,10 +91,12 @@ func New(ctx context.Context, config *Config) (*Observer, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, newError("Cannot get depended features").Base(err)
|
return nil, newError("Cannot get depended features").Base(err)
|
||||||
}
|
}
|
||||||
|
hp := NewHealthPing(ctx, config.PingConfig)
|
||||||
return &Observer{
|
return &Observer{
|
||||||
config: config,
|
config: config,
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
ohm: outboundManager,
|
ohm: outboundManager,
|
||||||
|
hp: hp,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user