FIX bug with starting client IP
This commit is contained in:
parent
3b80eea807
commit
971fdbd0f7
1 changed files with 3 additions and 3 deletions
|
|
@ -340,7 +340,7 @@ async function generateConfigs() {
|
||||||
const presharedKey = await crypto.generatePresharedKey(seed);
|
const presharedKey = await crypto.generatePresharedKey(seed);
|
||||||
|
|
||||||
// Calculate client IP (server gets .1, clients get .2, .3, etc.)
|
// Calculate client IP (server gets .1, clients get .2, .3, etc.)
|
||||||
const clientIP = `${networkParts[0]}.${networkParts[1]}.${networkParts[2]}.${networkParts[3] + i}`;
|
const clientIP = `${networkParts[0]}.${networkParts[1]}.${networkParts[2]}.${networkParts[3] + i + 1}`;
|
||||||
|
|
||||||
clients.push({
|
clients.push({
|
||||||
name: `client-${i}`,
|
name: `client-${i}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue