1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-26 01:15:38 +00:00

add initialization for health ping

This commit is contained in:
Shelikhoo 2021-06-18 22:03:59 +01:00
parent b797eb427a
commit 24a5e34ce0
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -91,10 +91,12 @@ func New(ctx context.Context, config *Config) (*Observer, error) {
if err != nil {
return nil, newError("Cannot get depended features").Base(err)
}
hp := NewHealthPing(ctx, config.PingConfig)
return &Observer{
config: config,
ctx: ctx,
ohm: outboundManager,
hp: hp,
}, nil
}