mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-09 22:19:07 -04:00
add initialization for health ping
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user