diff --git a/main.cpp b/main.cpp index 6e9bf5db7..2d93b49ec 100644 --- a/main.cpp +++ b/main.cpp @@ -189,6 +189,7 @@ static void printHelp(FILE *out,const char *pn) fprintf(out," getpublic "ZT_EOL_S); fprintf(out," sign "ZT_EOL_S); fprintf(out," verify "ZT_EOL_S); + fprintf(out," mkcom [ ...] (hexadecimal integers)"ZT_EOL_S); } static Identity getIdFromArg(char *arg) diff --git a/netconf-service/index.js b/netconf-service/index.js index 7ab2b35e0..701e9dfe6 100644 --- a/netconf-service/index.js +++ b/netconf-service/index.js @@ -184,19 +184,27 @@ function Identity(idstr) this.fromString = function(str) { thiz.str = ''; thiz.fields = []; - if (!str) + if (typeof str !== 'string') return; + for(var i=0;i= 4)); + }; if (typeof idstr === 'string') thiz.fromString(idstr);