mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
initdb changes
This commit is contained in:
parent
b8d29cb6ba
commit
6497a4a0f6
1 changed files with 13 additions and 15 deletions
|
@ -11,26 +11,24 @@ var INIT_DATA = {
|
||||||
* 24-bit network ID. This will create the full 16-digit network ID of the
|
* 24-bit network ID. This will create the full 16-digit network ID of the
|
||||||
* network you will join. This must be in the object name and in the "id"
|
* network you will join. This must be in the object name and in the "id"
|
||||||
* field within the object itself. */
|
* field within the object itself. */
|
||||||
"zt1:network:ffffffffff111111:~": {
|
"zt1:network:d40e9d860d111111:~": {
|
||||||
"id": "ffffffffff111111", // netconf master ZT address + 24-bit ID
|
"id": "d40e9d860d111111", // netconf master ZT address + 24-bit ID
|
||||||
"name": "zerotier-testnet", // short name, no spaces or special chars
|
"name": "zerotier-testnet", // short name, no spaces or special chars
|
||||||
"desc": "Test Network", // description
|
"desc": "Test Network", // description
|
||||||
"infrastructure": 0, // unused by netconf-master
|
"infrastructure": 0, // unused by netconf-master
|
||||||
"private": 0, // set to '1' to require member approval
|
"private": 0, // set to '1' to require member approval
|
||||||
"creationTime": 0, // unuxed by netconf-master
|
"creationTime": 0, // unuxed by netconf-master
|
||||||
"owner": "", // unused by netconf-master
|
"owner": "", // unused by netconf-master
|
||||||
"etherTypes": "0800,0806", // hex ethernet frame types allowed
|
"etherTypes": "0800,0806", // hex ethernet frame types allowed
|
||||||
"enableBroadcast": 1, // set to '1' to enable ff:ff:ff:ff:ff:ff
|
"enableBroadcast": 1, // set to '1' to enable ff:ff:ff:ff:ff:ff
|
||||||
"v4AssignMode": "zt", // 'zt' to assign, 'none' to let OS do it
|
"v4AssignMode": "zt", // 'zt' to assign, 'none' to let OS do it
|
||||||
"v4AssignPool": "28.0.0.0/7", // IPv4 net block / netmask bits
|
"v4AssignPool": "192.168.123.0/24", // IPv4 net block / netmask bits
|
||||||
"v6AssignMode": "none" // 'zt' to assign, 'none' to let OS do it
|
"v6AssignMode": "none" // 'zt' to assign, 'none' to let OS do it
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var config = require('./config.js');
|
var config = require('./config.js');
|
||||||
|
|
||||||
config.redisDb = 2;
|
|
||||||
|
|
||||||
var async = require('async');
|
var async = require('async');
|
||||||
var redis = require('redis');
|
var redis = require('redis');
|
||||||
var DB = redis.createClient();
|
var DB = redis.createClient();
|
||||||
|
|
Loading…
Add table
Reference in a new issue