2 Commits
Author SHA1 Message Date
Key Networks e6766b8448 centos7: Atcual path for libstdc++.a 2023-03-12 17:54:19 +08:00
Key Networks 66889f4885 centos7: Build on CentOs7 2023-03-12 17:42:53 +08:00
4 changed files with 7 additions and 19 deletions
+1 -2
View File
@@ -305,5 +305,4 @@ Problems with ztncui can be reported using the GitHub issue tracking system. Pl
The ztncui code is open source code, licensed under the GNU GPLv3, and is free to use on those terms. If you are interested in commercial licensing, please contact us via the contact form at [key-networks.com](https://key-networks.com) .
## Thanks
- @lideming for a rework and improvement of the network details page, adding DNS support, peer status/address/latency and other improvements.
- @Koromix for a fix for incompatibility with ZeroTier 1.12.
@lideming for a rework and improvement of the network details page, adding DNS support, peer status/address/latency and other improvements.
+1 -1
View File
@@ -4,7 +4,7 @@
],
"cflags+": ["-Wno-cast-function-type"],
"include_dirs+": ["<!(node -e \"require('nan')\")"],
+ "libraries": ["/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++fs.a"],
+ "libraries": ["/usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.a"],
"dependencies": ["libargon2"],
"configurations": {
"Debug": {
+1 -1
View File
@@ -26,7 +26,7 @@ BINDINGGYP='node_modules/argon2/binding.gyp'
NODE_VER='v16'
if [ ! -f /usr/lib/gcc/x86_64-redhat-linux/8/libstdc++fs.a ]; then
if [ ! -f /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.a ]; then
echo "You must install libstdc++-static"
exit 1
fi
+4 -15
View File
@@ -17,26 +17,15 @@ async function get_network_with_members(nwid) {
zt.network_detail(nwid),
zt.peers(),
zt.members(nwid)
.then(member_ids => {
// Fix weird data returned by ZeroTier 1.12
if (Array.isArray(member_ids)) {
let obj = {};
for (let id of member_ids) {
let key = Object.keys(id)[0];
let value = Object.values(id)[0];
obj[key] = value;
}
member_ids = obj;
}
return Promise.all(
.then(member_ids =>
Promise.all(
Object.keys(member_ids)
.map(id => Promise.all([
zt.member_detail(nwid, id),
storage.getItem(id)
]))
);
}).then(results => results.map(([member, name]) => {
)
).then(results => results.map(([member, name]) => {
member.name = name || '';
return member;
}))