forked from extern/smegmesh
main - BUGFIX
- segfault BUGFIX
This commit is contained in:
parent
acb90a5679
commit
a5074a536e
@ -33,7 +33,7 @@ func (n *IpcHandler) CreateMesh(args *ipc.NewMeshArgs, reply *string) error {
|
|||||||
overrideConf.Endpoint = &args.Endpoint
|
overrideConf.Endpoint = &args.Endpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
if *overrideConf.Role == conf.CLIENT_ROLE {
|
if overrideConf.Role != nil && *overrideConf.Role == conf.CLIENT_ROLE {
|
||||||
return fmt.Errorf("cannot create a mesh with no public endpoint")
|
return fmt.Errorf("cannot create a mesh with no public endpoint")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user