mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-13 23:08:30 +02:00
main - BUGFIX
- segfault BUGFIX
This commit is contained in:
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user