diff --git a/conf.d/yate.conf.sample b/conf.d/yate.conf.sample index 19bd2861..57a45a5e 100644 --- a/conf.d/yate.conf.sample +++ b/conf.d/yate.conf.sample @@ -97,10 +97,11 @@ ;abortinfo=enable ; nodeid: int: ID assigned to this node +; Range 0 - 2^nodebits-1 ;nodeid= ; nodebits: int: Length in bits of the node ID -; Range 0 - 10. 0 means that node ID will be ignored +; Range 0 - 12. 0 means that node ID will be ignored ;nodebits=0 ; msgsniff: bool: Activate message sniffer module (if loaded) at engine init time diff --git a/engine/Engine.cpp b/engine/Engine.cpp index ac0f507f..da817a04 100644 --- a/engine/Engine.cpp +++ b/engine/Engine.cpp @@ -1592,7 +1592,7 @@ int Engine::engineInit() if (s_affinity) s_params.addParam("affinity",s_affinity); - int nodeBits = s_cfg.getIntValue("general","nodebits",0,0,10); + int nodeBits = s_cfg.getIntValue("general","nodebits",0,0,12); if (nodeBits) { int nodeId = s_cfg.getIntValue("general","nodeid",0); if (0 <= nodeId && nodeId < (1 << nodeBits)) {