mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
allow alternative ports for central controllers
This commit is contained in:
parent
82409eb345
commit
62ccb48a0b
1 changed files with 4 additions and 2 deletions
|
@ -28,11 +28,13 @@ ln -s $ZT_IDENTITY_PATH/identity.public identity.public
|
||||||
ln -s $ZT_IDENTITY_PATH/identity.secret identity.secret
|
ln -s $ZT_IDENTITY_PATH/identity.secret identity.secret
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
DEFAULT_PORT=9993
|
||||||
|
|
||||||
echo "{
|
echo "{
|
||||||
\"settings\": {
|
\"settings\": {
|
||||||
\"portMappingEnabled\": true,
|
\"portMappingEnabled\": true,
|
||||||
\"softwareUpdate\": \"disable\",
|
\"softwareUpdate\": \"disable\",
|
||||||
\"interfadePrefixBlacklist\": [
|
\"interfacePrefixBlacklist\": [
|
||||||
\"inot\",
|
\"inot\",
|
||||||
\"nat64\"
|
\"nat64\"
|
||||||
],
|
],
|
||||||
|
@ -44,4 +46,4 @@ echo "{
|
||||||
export GLIBCXX_FORCE_NEW=1
|
export GLIBCXX_FORCE_NEW=1
|
||||||
export GLIBCPP_FORCE_NEW=1
|
export GLIBCPP_FORCE_NEW=1
|
||||||
export LD_PRELOAD="/usr/lib64/libjemalloc.so"
|
export LD_PRELOAD="/usr/lib64/libjemalloc.so"
|
||||||
exec /usr/local/bin/zerotier-one /var/lib/zerotier-one
|
exec /usr/local/bin/zerotier-one -p${ZT_CONTROLLER_PORT:-$DEFAULT_PORT} /var/lib/zerotier-one
|
||||||
|
|
Loading…
Add table
Reference in a new issue