mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-11-13 20:23:00 -08:00
use uuid as struct
This commit is contained in:
8 files changed
+30
-23
No files matched your search
@@ -37,7 +37,7 @@ type Instance struct {
|
||||
// To make sure V2Ray instance works properly, the config must contain one Dispatcher, one InboundHandlerManager and one OutboundHandlerManager. Other features are optional.
|
||||
func New(config *Config) (*Instance, error) {
|
||||
var server = &Instance{
|
||||
id: *(uuid.New()),
|
||||
id: uuid.New(),
|
||||
}
|
||||
|
||||
if err := config.Transport.Apply(); err != nil {
|
||||
|
||||
Reference in new issue
Block a user