mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-15 08:05:36 -05:00
refactor dependency resolution
This commit is contained in:
@@ -35,7 +35,7 @@ func New(ctx context.Context, config *Config) (*DokodemoDoor, error) {
|
||||
config: config,
|
||||
address: config.GetPredefinedAddress(),
|
||||
port: net.Port(config.Port),
|
||||
policyManager: v.PolicyManager(),
|
||||
policyManager: v.GetFeature(policy.ManagerType()).(policy.Manager),
|
||||
}
|
||||
|
||||
return d, nil
|
||||
|
||||
Reference in New Issue
Block a user