mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
amend vmess socks simplified config to allow injection of implementation
This commit is contained in:
parent
8da2f5393d
commit
38f9f1d07a
@ -15,7 +15,7 @@ func init() {
|
||||
Address: simplifiedServer.Address,
|
||||
UdpEnabled: simplifiedServer.UdpEnabled,
|
||||
}
|
||||
return socks.NewServer(ctx, fullServer)
|
||||
return common.CreateObject(ctx, fullServer)
|
||||
}))
|
||||
|
||||
common.Must(common.RegisterConfig((*ClientConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
||||
@ -28,6 +28,6 @@ func init() {
|
||||
},
|
||||
},
|
||||
}
|
||||
return socks.NewClient(ctx, fullClient)
|
||||
return common.CreateObject(ctx, fullClient)
|
||||
}))
|
||||
}
|
||||
|
@ -377,7 +377,7 @@ func init() {
|
||||
}(),
|
||||
}
|
||||
|
||||
return New(ctx, fullConfig)
|
||||
return common.CreateObject(ctx, fullConfig)
|
||||
}))
|
||||
|
||||
defaultFlagValue := "NOT_DEFINED_AT_ALL"
|
||||
|
@ -222,7 +222,7 @@ func init() {
|
||||
},
|
||||
}}
|
||||
|
||||
return New(ctx, fullClient)
|
||||
return common.CreateObject(ctx, fullClient)
|
||||
}))
|
||||
|
||||
const defaultFlagValue = "NOT_DEFINED_AT_ALL"
|
||||
|
Loading…
Reference in New Issue
Block a user