Merge pull request #678 from majestrate/disable-rpc

actually set config for network
This commit is contained in:
Jeff 2019-07-02 09:38:37 -04:00 committed by GitHub
commit 10df3bd4b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -792,6 +792,9 @@ namespace llarp
LogError("failed to bind inbound link on ", key, " port ", port);
}
// set network config
netConfig = conf->network.netConfig;
// Network config
if(conf->network.enableProfiling.has_value())
{
@ -845,6 +848,7 @@ namespace llarp
llarp::LogError("invalid key for strict-connect: ", val);
}
// API config
enableRPCServer = conf->api.enableRPCServer;
rpcBindAddr = conf->api.rpcBindAddr;