1
0
forked from extern/smegmesh

main - BUGFIX

- segfault BUGFIX
This commit is contained in:
Tim Beatham 2023-12-10 22:31:24 +00:00
parent acb90a5679
commit a5074a536e

View File

@ -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")
} }