diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-23 13:59:38 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-23 13:59:38 -0800 |
| commit | ef4472e1857b86b5a45493a3c3566c7761260dad (patch) | |
| tree | 740f414accf4f28b64ebb43593c657ffd5d7f43d /netcon/NetconEthernetTap.cpp | |
| parent | 4acb3d81f3657598fbc18461ed5ad4afe24922fe (diff) | |
| download | infinitytier-ef4472e1857b86b5a45493a3c3566c7761260dad.tar.gz infinitytier-ef4472e1857b86b5a45493a3c3566c7761260dad.zip | |
Intercept now checks ZT_NC_NWID environment variable for 16-digit network ID and does not initialize if not present.
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
| -rw-r--r-- | netcon/NetconEthernetTap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp index 9035c6ef..7fdc4eaf 100644 --- a/netcon/NetconEthernetTap.cpp +++ b/netcon/NetconEthernetTap.cpp @@ -190,7 +190,7 @@ NetconEthernetTap::NetconEthernetTap( { char sockPath[4096],lwipPath[4096]; rpc_counter = -1; - Utils::snprintf(sockPath,sizeof(sockPath),"%s%snetcon_service_%.16llx",homePath,ZT_PATH_SEPARATOR_S,(unsigned long long)nwid); + Utils::snprintf(sockPath,sizeof(sockPath),"/tmp/.ztnc_%.16llx",homePath,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); |
