mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-22 23:16:55 +02:00
Compare commits
No commits in common. "dev" and "1.14.2" have entirely different histories.
12 changed files with 289 additions and 569 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -1,7 +1,4 @@
|
||||||
on:
|
on: [ push ]
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_ubuntu:
|
build_ubuntu:
|
||||||
|
|
3
.github/workflows/validate.yml
vendored
3
.github/workflows/validate.yml
vendored
|
@ -1,5 +1,4 @@
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
@ -45,7 +44,7 @@ jobs:
|
||||||
sudo ./.github/workflows/validate-linux.sh
|
sudo ./.github/workflows/validate-linux.sh
|
||||||
|
|
||||||
- name: Archive test results
|
- name: Archive test results
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{github.sha}}-test-results
|
name: ${{github.sha}}-test-results
|
||||||
path: "*test-results*"
|
path: "*test-results*"
|
||||||
|
|
|
@ -64,7 +64,6 @@ You can control a few settings including the identity used and the authtoken use
|
||||||
- `ZEROTIER_API_SECRET`: replaces the `authtoken.secret` before booting and allows you to manage the control socket's authentication key.
|
- `ZEROTIER_API_SECRET`: replaces the `authtoken.secret` before booting and allows you to manage the control socket's authentication key.
|
||||||
- `ZEROTIER_IDENTITY_PUBLIC`: the `identity.public` file for zerotier-one. Use `zerotier-idtool` to generate one of these for you.
|
- `ZEROTIER_IDENTITY_PUBLIC`: the `identity.public` file for zerotier-one. Use `zerotier-idtool` to generate one of these for you.
|
||||||
- `ZEROTIER_IDENTITY_SECRET`: the `identity.secret` file for zerotier-one. Use `zerotier-idtool` to generate one of these for you.
|
- `ZEROTIER_IDENTITY_SECRET`: the `identity.secret` file for zerotier-one. Use `zerotier-idtool` to generate one of these for you.
|
||||||
- `ZEROTIER_LOCAL_CONF`: Sets the the `local.conf` file content for zerotier-one
|
|
||||||
|
|
||||||
### Tips
|
### Tips
|
||||||
|
|
||||||
|
|
|
@ -1549,7 +1549,6 @@ void EmbeddedNetworkController::_request(
|
||||||
authInfo.add(ZT_AUTHINFO_DICT_KEY_NONCE, info.ssoNonce.c_str());
|
authInfo.add(ZT_AUTHINFO_DICT_KEY_NONCE, info.ssoNonce.c_str());
|
||||||
authInfo.add(ZT_AUTHINFO_DICT_KEY_STATE, info.ssoState.c_str());
|
authInfo.add(ZT_AUTHINFO_DICT_KEY_STATE, info.ssoState.c_str());
|
||||||
authInfo.add(ZT_AUTHINFO_DICT_KEY_CLIENT_ID, info.ssoClientID.c_str());
|
authInfo.add(ZT_AUTHINFO_DICT_KEY_CLIENT_ID, info.ssoClientID.c_str());
|
||||||
authInfo.add(ZT_AUTHINFO_DICT_KEY_SSO_PROVIDER, info.ssoProvider.c_str());
|
|
||||||
_sender->ncSendError(nwid,requestPacketId,identity.address(),NetworkController::NC_ERROR_AUTHENTICATION_REQUIRED, authInfo.data(), authInfo.sizeBytes());
|
_sender->ncSendError(nwid,requestPacketId,identity.address(),NetworkController::NC_ERROR_AUTHENTICATION_REQUIRED, authInfo.data(), authInfo.sizeBytes());
|
||||||
}
|
}
|
||||||
DB::cleanMember(member);
|
DB::cleanMember(member);
|
||||||
|
|
|
@ -9,16 +9,15 @@ mkztfile() {
|
||||||
file=$1
|
file=$1
|
||||||
mode=$2
|
mode=$2
|
||||||
content=$3
|
content=$3
|
||||||
echo "creating $file"
|
|
||||||
mkdir -p /var/lib/zerotier-one
|
mkdir -p /var/lib/zerotier-one
|
||||||
echo -n "$content" > "/var/lib/zerotier-one/$file"
|
echo "$content" > "/var/lib/zerotier-one/$file"
|
||||||
chmod "$mode" "/var/lib/zerotier-one/$file"
|
chmod "$mode" "/var/lib/zerotier-one/$file"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "x$ZEROTIER_API_SECRET" != "x" ]
|
if [ "x$ZEROTIER_API_SECRET" != "x" ]
|
||||||
then
|
then
|
||||||
mkztfile authtoken.secret 0600 "$ZEROTIER_API_SECRET"
|
mkztfile authtoken.secret 0600 "$ZEROTIER_API_SECRET"
|
||||||
mkztfile metricstoken.secret 0600 "$ZEROTIER_API_SECRET"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "x$ZEROTIER_IDENTITY_PUBLIC" != "x" ]
|
if [ "x$ZEROTIER_IDENTITY_PUBLIC" != "x" ]
|
||||||
|
@ -31,11 +30,6 @@ then
|
||||||
mkztfile identity.secret 0600 "$ZEROTIER_IDENTITY_SECRET"
|
mkztfile identity.secret 0600 "$ZEROTIER_IDENTITY_SECRET"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "x$ZEROTIER_LOCAL_CONF" != "x" ]
|
|
||||||
then
|
|
||||||
mkztfile local.conf 0644 "$ZEROTIER_LOCAL_CONF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkztfile zerotier-one.port 0600 "9993"
|
mkztfile zerotier-one.port 0600 "9993"
|
||||||
|
|
||||||
killzerotier() {
|
killzerotier() {
|
||||||
|
|
|
@ -84,7 +84,7 @@ extern "C" {
|
||||||
/**
|
/**
|
||||||
* Minimum UDP payload size allowed
|
* Minimum UDP payload size allowed
|
||||||
*/
|
*/
|
||||||
#define ZT_MIN_PHYSMTU 510
|
#define ZT_MIN_PHYSMTU 1400
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum physical interface name length. This number is gigantic because of Windows.
|
* Maximum physical interface name length. This number is gigantic because of Windows.
|
||||||
|
|
|
@ -30,8 +30,7 @@ CORE_OBJS=\
|
||||||
node/Trace.o \
|
node/Trace.o \
|
||||||
node/Utils.o \
|
node/Utils.o \
|
||||||
node/Bond.o \
|
node/Bond.o \
|
||||||
node/PacketMultiplexer.o \
|
node/PacketMultiplexer.o
|
||||||
osdep/OSUtils.o
|
|
||||||
|
|
||||||
ONE_OBJS=\
|
ONE_OBJS=\
|
||||||
controller/EmbeddedNetworkController.o \
|
controller/EmbeddedNetworkController.o \
|
||||||
|
@ -43,6 +42,7 @@ ONE_OBJS=\
|
||||||
osdep/EthernetTap.o \
|
osdep/EthernetTap.o \
|
||||||
osdep/ManagedRoute.o \
|
osdep/ManagedRoute.o \
|
||||||
osdep/Http.o \
|
osdep/Http.o \
|
||||||
|
osdep/OSUtils.o \
|
||||||
service/SoftwareUpdater.o \
|
service/SoftwareUpdater.o \
|
||||||
service/OneService.o
|
service/OneService.o
|
||||||
|
|
||||||
|
|
|
@ -431,7 +431,6 @@ void BSDEthernetTap::threadMain()
|
||||||
// constructing itself.
|
// constructing itself.
|
||||||
Thread::sleep(500);
|
Thread::sleep(500);
|
||||||
|
|
||||||
#ifndef __OpenBSD__
|
|
||||||
bool pinning = _pinning;
|
bool pinning = _pinning;
|
||||||
|
|
||||||
for (unsigned int i = 0; i < _concurrency; ++i) {
|
for (unsigned int i = 0; i < _concurrency; ++i) {
|
||||||
|
@ -452,7 +451,6 @@ void BSDEthernetTap::threadMain()
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // __OpenBSD__
|
|
||||||
|
|
||||||
uint8_t b[ZT_TAP_BUF_SIZE];
|
uint8_t b[ZT_TAP_BUF_SIZE];
|
||||||
MAC to, from;
|
MAC to, from;
|
||||||
|
@ -499,10 +497,8 @@ void BSDEthernetTap::threadMain()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef __OpenBSD__
|
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
#endif // __OpenBSD__
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ZeroTier
|
} // namespace ZeroTier
|
||||||
|
|
|
@ -140,7 +140,7 @@ std::shared_ptr<EthernetTap> EthernetTap::newInstance(
|
||||||
#endif // __NetBSD__
|
#endif // __NetBSD__
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
return std::shared_ptr<EthernetTap>(new BSDEthernetTap(homePath,concurrency,pinning,mac,mtu,metric,nwid,friendlyName,handler,arg));
|
return std::shared_ptr<EthernetTap>(new BSDEthernetTap(homePath,mac,mtu,metric,nwid,friendlyName,handler,arg));
|
||||||
#endif // __OpenBSD__
|
#endif // __OpenBSD__
|
||||||
|
|
||||||
#endif // ZT_SDK?
|
#endif // ZT_SDK?
|
||||||
|
|
816
rustybits/Cargo.lock
generated
816
rustybits/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,7 @@ serde = { version = "1", features = ["derive"] }
|
||||||
temporal-sdk = { git = "https://github.com/temporalio/sdk-core", branch = "master" }
|
temporal-sdk = { git = "https://github.com/temporalio/sdk-core", branch = "master" }
|
||||||
temporal-client = { git = "https://github.com/temporalio/sdk-core", branch = "master", features = ["telemetry"] }
|
temporal-client = { git = "https://github.com/temporalio/sdk-core", branch = "master", features = ["telemetry"] }
|
||||||
temporal-sdk-core-protos = { git = "https://github.com/temporalio/sdk-core", branch = "master" }
|
temporal-sdk-core-protos = { git = "https://github.com/temporalio/sdk-core", branch = "master" }
|
||||||
tokio = { version = "1.43", features = ["full"] }
|
tokio = { version = "1.29", features = ["full"] }
|
||||||
url = { version = "2" }
|
url = { version = "2" }
|
||||||
uuid = { version = "1.4", features = ["v4"] }
|
uuid = { version = "1.4", features = ["v4"] }
|
||||||
|
|
||||||
|
|
|
@ -16,10 +16,7 @@ use serde::{Deserialize, Serialize};
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use temporal_client::{Client, ClientOptionsBuilder, RetryClient, WorkflowClientTrait, WorkflowOptions};
|
use temporal_client::{Client, ClientOptionsBuilder, RetryClient, WorkflowClientTrait, WorkflowOptions};
|
||||||
use temporal_sdk_core_protos::{
|
use temporal_sdk_core_protos::{coresdk::AsJsonPayloadExt, temporal::api::enums::v1::WorkflowIdReusePolicy};
|
||||||
coresdk::AsJsonPayloadExt,
|
|
||||||
temporal::api::enums::v1::{WorkflowIdConflictPolicy, WorkflowIdReusePolicy},
|
|
||||||
};
|
|
||||||
use url::Url;
|
use url::Url;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
|
@ -75,7 +72,6 @@ impl SmeeClient {
|
||||||
println!("notifying network joined");
|
println!("notifying network joined");
|
||||||
let options = WorkflowOptions {
|
let options = WorkflowOptions {
|
||||||
id_reuse_policy: WorkflowIdReusePolicy::RejectDuplicate,
|
id_reuse_policy: WorkflowIdReusePolicy::RejectDuplicate,
|
||||||
id_conflict_policy: WorkflowIdConflictPolicy::Fail,
|
|
||||||
execution_timeout: None,
|
execution_timeout: None,
|
||||||
run_timeout: None,
|
run_timeout: None,
|
||||||
task_timeout: None,
|
task_timeout: None,
|
||||||
|
|
Loading…
Add table
Reference in a new issue