mirror of https://github.com/wg-easy/wg-easy
11 changed files with 116 additions and 25 deletions
@ -32,6 +32,9 @@ importers: |
|||||
bcryptjs: |
bcryptjs: |
||||
specifier: ^2.4.3 |
specifier: ^2.4.3 |
||||
version: 2.4.3 |
version: 2.4.3 |
||||
|
cidr-tools: |
||||
|
specifier: ^11.0.2 |
||||
|
version: 11.0.2 |
||||
crc-32: |
crc-32: |
||||
specifier: ^1.2.2 |
specifier: ^1.2.2 |
||||
version: 1.2.2 |
version: 1.2.2 |
||||
@ -41,6 +44,12 @@ importers: |
|||||
ip: |
ip: |
||||
specifier: ^2.0.1 |
specifier: ^2.0.1 |
||||
version: 2.0.1 |
version: 2.0.1 |
||||
|
ip-bigint: |
||||
|
specifier: ^8.2.0 |
||||
|
version: 8.2.0 |
||||
|
is-ip: |
||||
|
specifier: ^5.0.1 |
||||
|
version: 5.0.1 |
||||
js-sha256: |
js-sha256: |
||||
specifier: ^0.11.0 |
specifier: ^0.11.0 |
||||
version: 0.11.0 |
version: 0.11.0 |
||||
@ -1678,6 +1687,10 @@ packages: |
|||||
resolution: {integrity: sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==} |
resolution: {integrity: sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==} |
||||
engines: {node: '>=8'} |
engines: {node: '>=8'} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-OLeM9EOXybbhMsGGBNRLCMjn8e+wFOXARIShF/sZwmJLsxWywqfE0By4BMftT6BFWpbcETWpW7TfM2KGCtrZDg==} |
||||
|
engines: {node: '>=18'} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==} |
resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==} |
||||
|
|
||||
@ -1699,6 +1712,10 @@ packages: |
|||||
resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} |
resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} |
||||
engines: {node: '>=12'} |
engines: {node: '>=12'} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-ujdnoq2Kxb8s3ItNBtnYeXdm07FcU0u8ARAT1lQ2YdMwQC+cdiXX8KoqMVuglztILivceTtp4ivqGSmEmhBUJw==} |
||||
|
engines: {node: '>=12'} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==} |
resolution: {integrity: sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==} |
||||
engines: {node: '>=0.10.0'} |
engines: {node: '>=0.10.0'} |
||||
@ -1784,6 +1801,10 @@ packages: |
|||||
resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} |
resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} |
||||
engines: {node: '>= 0.6'} |
engines: {node: '>= 0.6'} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-lOETlkIeYSJWcbbcvjRKGxVMXJR+8+OQb/mTPbA4ObPMytYIsUbuOE0Jzy60hjARYszq1id0j8KgVhC+WGZVTg==} |
||||
|
engines: {node: '>=12'} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} |
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} |
||||
|
|
||||
@ -2338,6 +2359,10 @@ packages: |
|||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} |
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-0NVVC0TaP7dSTvn1yMiy6d6Q8gifzbvQafO46RtLG/kHJUBNd+pVRGOBoK44wNBvtSPUJRfdVvkFdD3p0xvyZg==} |
||||
|
engines: {node: '>=14.16'} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==} |
resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==} |
||||
engines: {node: '>=10'} |
engines: {node: '>=10'} |
||||
@ -2555,6 +2580,14 @@ packages: |
|||||
resolution: {integrity: sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==} |
resolution: {integrity: sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==} |
||||
engines: {node: '>=12.22.0'} |
engines: {node: '>=12.22.0'} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-46EAEKzGNxojH5JaGEeCix49tL4h1W8ia5mhogZ68HroVAfyLj1E+SFFid4GuyK0mdIKjwcAITLqwg1wlkx2iQ==} |
||||
|
engines: {node: '>=18'} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-fOCG6lhoKKakwv+C6KdsOnGvgXnmgfmp0myi3bcNwj3qfwPAxRKWEuFhvEFF7ceYIz6+1jRZ+yguLFAmUNPEfw==} |
||||
|
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==} |
resolution: {integrity: sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==} |
||||
|
|
||||
@ -2614,6 +2647,10 @@ packages: |
|||||
resolution: {integrity: sha512-K55T22lfpQ63N4KEN57jZUAaAYqYHEe8veb/TycJRk9DdSCLLcovXz/mL6mOnhQaZsQGwPhuFopdQIlqGSEjiQ==} |
resolution: {integrity: sha512-K55T22lfpQ63N4KEN57jZUAaAYqYHEe8veb/TycJRk9DdSCLLcovXz/mL6mOnhQaZsQGwPhuFopdQIlqGSEjiQ==} |
||||
engines: {node: '>=18'} |
engines: {node: '>=18'} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-FCsGHdlrOnZQcp0+XT5a+pYowf33itBalCl+7ovNXC/7o5BhIpG14M3OrpPPdBSIQJCm+0M5+9mO7S9VVTTCFw==} |
||||
|
engines: {node: '>=14.16'} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} |
resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} |
||||
|
|
||||
@ -2632,6 +2669,10 @@ packages: |
|||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} |
resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==} |
||||
|
engines: {node: '>=12'} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==} |
resolution: {integrity: sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==} |
||||
|
|
||||
@ -3843,6 +3884,10 @@ packages: |
|||||
engines: {node: '>=16 || 14 >=14.17'} |
engines: {node: '>=16 || 14 >=14.17'} |
||||
hasBin: true |
hasBin: true |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-WZzIx3rC1CvbMDloLsVw0lkZVKJWbrkJ0k1ghKFmcnPrW1+jWbgTkTEWVtD9lMdmI4jZEz40+naBxl1dCUhXXw==} |
||||
|
engines: {node: '>=14.16'} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-8iGv75BYOa0xRJHK5vRLEjE2H/i4lulTjzpUXic3Eg8akftYjkmQDa8JARQ42rlczXyFR3IeRoeFCc7RxHsYZA==} |
resolution: {integrity: sha512-8iGv75BYOa0xRJHK5vRLEjE2H/i4lulTjzpUXic3Eg8akftYjkmQDa8JARQ42rlczXyFR3IeRoeFCc7RxHsYZA==} |
||||
engines: {node: '>=16'} |
engines: {node: '>=16'} |
||||
@ -3951,6 +3996,10 @@ packages: |
|||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} |
resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} |
||||
|
|
||||
|
[email protected]: |
||||
|
resolution: {integrity: sha512-75voc/9G4rDIJleOo4jPvN4/YC4GRZrY8yy1uU4lwrB3XEQbWve8zXoO5No4eFrGcTAMYyoY67p8jRQdtA1HbA==} |
||||
|
engines: {node: '>=12'} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
resolution: {integrity: sha512-a7wPxPdVlQL7lqvitHGGRsofhdwtkoSXPGATFuSOA2i1ZNQEPLrGnj68vOp2sOJTCFAQVXPeNMX/GctBaO9L2w==} |
resolution: {integrity: sha512-a7wPxPdVlQL7lqvitHGGRsofhdwtkoSXPGATFuSOA2i1ZNQEPLrGnj68vOp2sOJTCFAQVXPeNMX/GctBaO9L2w==} |
||||
|
|
||||
@ -6214,6 +6263,10 @@ snapshots: |
|||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|
||||
|
[email protected]: |
||||
|
dependencies: |
||||
|
ip-bigint: 8.2.0 |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
dependencies: |
dependencies: |
||||
consola: 3.2.3 |
consola: 3.2.3 |
||||
@ -6242,6 +6295,10 @@ snapshots: |
|||||
strip-ansi: 6.0.1 |
strip-ansi: 6.0.1 |
||||
wrap-ansi: 7.0.0 |
wrap-ansi: 7.0.0 |
||||
|
|
||||
|
[email protected]: |
||||
|
dependencies: |
||||
|
is-regexp: 3.1.0 |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
@ -6302,6 +6359,8 @@ snapshots: |
|||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|
||||
|
[email protected]: {} |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
@ -6951,6 +7010,8 @@ snapshots: |
|||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|
||||
|
[email protected]: {} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
dependencies: |
dependencies: |
||||
aproba: 2.0.0 |
aproba: 2.0.0 |
||||
@ -7190,6 +7251,10 @@ snapshots: |
|||||
transitivePeerDependencies: |
transitivePeerDependencies: |
||||
- supports-color |
- supports-color |
||||
|
|
||||
|
[email protected]: {} |
||||
|
|
||||
|
[email protected]: {} |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
@ -7235,6 +7300,11 @@ snapshots: |
|||||
global-directory: 4.0.1 |
global-directory: 4.0.1 |
||||
is-path-inside: 4.0.0 |
is-path-inside: 4.0.0 |
||||
|
|
||||
|
[email protected]: |
||||
|
dependencies: |
||||
|
ip-regex: 5.0.0 |
||||
|
super-regex: 0.2.0 |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
@ -7247,6 +7317,8 @@ snapshots: |
|||||
dependencies: |
dependencies: |
||||
'@types/estree': 1.0.5 |
'@types/estree': 1.0.5 |
||||
|
|
||||
|
[email protected]: {} |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
dependencies: |
dependencies: |
||||
protocols: 2.0.1 |
protocols: 2.0.1 |
||||
@ -8598,6 +8670,12 @@ snapshots: |
|||||
pirates: 4.0.6 |
pirates: 4.0.6 |
||||
ts-interface-checker: 0.1.13 |
ts-interface-checker: 0.1.13 |
||||
|
|
||||
|
[email protected]: |
||||
|
dependencies: |
||||
|
clone-regexp: 3.0.0 |
||||
|
function-timeout: 0.1.1 |
||||
|
time-span: 5.1.0 |
||||
|
|
||||
[email protected]: |
[email protected]: |
||||
dependencies: |
dependencies: |
||||
copy-anything: 3.0.5 |
copy-anything: 3.0.5 |
||||
@ -8743,6 +8821,10 @@ snapshots: |
|||||
dependencies: |
dependencies: |
||||
any-promise: 1.3.0 |
any-promise: 1.3.0 |
||||
|
|
||||
|
[email protected]: |
||||
|
dependencies: |
||||
|
convert-hrtime: 5.0.0 |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|
||||
[email protected]: {} |
[email protected]: {} |
||||
|
|||||
@ -1,8 +1,7 @@ |
|||||
export default defineEventHandler(async () => { |
export default defineEventHandler(async () => { |
||||
const system = await Database.getSystem(); |
|
||||
const latestRelease = await fetchLatestRelease(); |
const latestRelease = await fetchLatestRelease(); |
||||
return { |
return { |
||||
currentRelease: system.release, |
currentRelease: RELEASE, |
||||
latestRelease: latestRelease, |
latestRelease: latestRelease, |
||||
}; |
}; |
||||
}); |
}); |
||||
|
|||||
@ -1,5 +1,8 @@ |
|||||
import debug from 'debug'; |
import debug from 'debug'; |
||||
|
import packageJson from '@@/package.json'; |
||||
|
|
||||
export const WG_PATH = process.env.WG_PATH || '/etc/wireguard/'; |
export const WG_PATH = process.env.WG_PATH || '/etc/wireguard/'; |
||||
|
|
||||
|
export const RELEASE = packageJson.release.version; |
||||
|
|
||||
export const SERVER_DEBUG = debug('Server'); |
export const SERVER_DEBUG = debug('Server'); |
||||
|
|||||
Loading…
Reference in new issue