Fix for GitHub issue #37: remember *nix device names.
This commit is contained in:
parent
f1b45f7df0
commit
3f912eb4ad
4 changed files with 65 additions and 21 deletions
|
@ -91,7 +91,7 @@ NodeConfig::NodeConfig(const RuntimeEnvironment *renv,const char *authToken,unsi
|
|||
|
||||
for(std::vector<uint64_t>::iterator n(configuredNets.begin());n!=configuredNets.end();++n) {
|
||||
try {
|
||||
_networks[*n] = Network::newInstance(_r,*n);
|
||||
_networks[*n] = Network::newInstance(_r,this,*n);
|
||||
} catch (std::exception &exc) {
|
||||
LOG("unable to create network %.16llx: %s",(unsigned long long)*n,exc.what());
|
||||
} catch ( ... ) {
|
||||
|
@ -246,7 +246,7 @@ std::vector<std::string> NodeConfig::execute(const char *command)
|
|||
_P("409 already a member of %.16llx",(unsigned long long)nwid);
|
||||
} else {
|
||||
try {
|
||||
SharedPtr<Network> nw(Network::newInstance(_r,nwid));
|
||||
SharedPtr<Network> nw(Network::newInstance(_r,this,nwid));
|
||||
_networks[nwid] = nw;
|
||||
_P("200 join %.16llx OK",(unsigned long long)nwid);
|
||||
} catch (std::exception &exc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue