use uuid as struct

This commit is contained in:
Darien Raymond committed 2018-01-18 23:25:48 +01:00
1 parent 14176a340d
commit 0e01e28278
8 files changed
+30 -23

No files matched your search

+1 -1
View File
@@ -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 {