Minor nwid conversion fix in ztproxy

This commit is contained in:
Joseph Henry
2017-11-29 17:03:31 -08:00
parent 8d1d77a8a4
commit a49c0aee49

View File

@@ -374,7 +374,7 @@ int main(int argc, char **argv)
// Start ZeroTier Node
// Join Network which contains resources we need to proxy
DEBUG_INFO("waiting for libzt to come online");
uint64_t nwid = strtoll(nwidstr.c_str(),NULL,16);
uint64_t nwid = strtoull(nwidstr.c_str(),NULL,16);
zts_startjoin(path.c_str(), nwid);
ZeroTier::ZTProxy *proxy = new ZeroTier::ZTProxy(proxy_listen_port, nwidstr, path, internal_addr, internal_port, dns_nameserver);