mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-19 21:03:57 -07:00
Docs, and change ZT_NC_NWID to ZT_NC_NETWORK and use full path in local ZT home dir to enable multiple instances.
This commit is contained in:
parent
37a7e9e275
commit
6bc93d2050
3 changed files with 33 additions and 39 deletions
|
@ -170,7 +170,7 @@ NetconEthernetTap::NetconEthernetTap(
|
|||
{
|
||||
char sockPath[4096],lwipPath[4096];
|
||||
rpc_counter = -1;
|
||||
Utils::snprintf(sockPath,sizeof(sockPath),"/tmp/.ztnc_%.16llx",_nwid,ZT_PATH_SEPARATOR_S,(unsigned long long)nwid);
|
||||
Utils::snprintf(sockPath,sizeof(sockPath),"%s%snc_%.16llx",homePath,ZT_PATH_SEPARATOR_S,_nwid,ZT_PATH_SEPARATOR_S,(unsigned long long)nwid);
|
||||
_dev = sockPath; // in netcon mode, set device to be just the network ID
|
||||
|
||||
Utils::snprintf(lwipPath,sizeof(lwipPath),"%s%sliblwip.so",homePath,ZT_PATH_SEPARATOR_S);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue