yuze-vlan-server 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.mjs CHANGED
@@ -46,7 +46,10 @@ try{
46
46
  fs.writeFileSync(input,JSON.stringify({...settings,releaseKey}),{mode:0o600});
47
47
  try{run(nativeBinary(),['init','--config',input,...(dry?['--dry-run']:[])])}finally{fs.rmSync(dir,{recursive:true,force:true})}
48
48
  if(!dry){
49
- run(process.execPath,[recoveryCli(),'setup','--profile',path.join(settings.root||serverRoot,'config/recovery.json')]);
49
+ // The profile only seeds the recovery install; afterwards the recovery
50
+ // service's own config.json is the single copy. A failed setup keeps it for a retry.
51
+ const recoveryProfile=path.join(settings.root||serverRoot,'config/recovery.json');
52
+ run(process.execPath,[recoveryCli(),'setup','--profile',recoveryProfile]);fs.rmSync(recoveryProfile);
50
53
  console.log('Core server and recovery server installed. Dashboard credentials: '+path.join(settings.root||serverRoot,'config/admin-credentials.json'));
51
54
  }
52
55
  }else if(command==='upgrade'){
@@ -1,3 +1,3 @@
1
1
  {
2
- "vlan": "b0b59eb1120c3c85849678d2d5ed9e20a269561e4ca49b1f73628eae55baee7d"
2
+ "vlan": "6072eedb95a63fa48effa3a1836f86e2a8efa4adec45ba6abd0523a852e72477"
3
3
  }
@@ -1 +1 @@
1
- cba2bdce6596f168fef1477fbe4eb84da1397e7eab99b252d5777b82f37ce55e3b5efdbb5b3460255a4f5101a0a15263494ad9206729804d3e738f762c1e5203
1
+ a18288df4bff19b2864341bdb4e4c1ddf51cc111a3049fb012dcf9f7d33a32b15441425cc9ac36de2dbf5e5401e8d9fc7aaefdf83749116c1b145f3eb0594d0d
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "vlan": "5028cf83e906795b25019efb08ea5ca11d745fda98f181b7d571bcdd19783b04"
2
+ "vlan": "19f9db0077c14c8cffbe669fc1d510bbe1a91f57eaa8c1017c2495f6e249629b"
3
3
  }
@@ -1 +1 @@
1
- b47d48c2ead935ab1cba3a314bb599453d85868d433c93aa779cca4a427ef4587cf54e5911357a83e2edc8b40070edfe3ee79653f6e389774a3772e827bedc04
1
+ 97e6d467618cd050161d20e328f5e06cf4543ea4b994732d47a3cdaf948b9f6c255e4009ddd3c6858acb53690ebdc39df23ac19913599cc5f20750856cba8107
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuze-vlan-server",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Core server of Yuze VLAN: install, upgrade and operate the relay that owns every client and entry decision",
5
5
  "bin": {
6
6
  "yuze-vlan-server": "bin/cli.mjs"