Commit 1831a824 authored by nanahira's avatar nanahira

update link6 address

parent ae6b46ed
...@@ -267,8 +267,11 @@ class InventoryBuilder { ...@@ -267,8 +267,11 @@ class InventoryBuilder {
const wgPublicKey = remote.wgPublickey; const wgPublicKey = remote.wgPublickey;
const localPeerAddress = primary ? `10.200.${local.id}.${remote.id}` : `10.201.${local.id}.${remote.id}`; const localPeerAddress = primary ? `10.200.${local.id}.${remote.id}` : `10.201.${local.id}.${remote.id}`;
const remotePeerAddress = primary ? `10.200.${remote.id}.${local.id}` : `10.201.${remote.id}.${local.id}`; const remotePeerAddress = primary ? `10.200.${remote.id}.${local.id}` : `10.201.${remote.id}.${local.id}`;
const localPeerAddress6 = `fe80::${primary ? 1 : 2}:${local.id}:${remote.id}`; const localPeerAddress6Block = ((local.id << 8) | remote.id).toString(16);
const remotePeerAddress6 = `fe80::${primary ? 1 : 2}:${remote.id}:${local.id}`; const remotePeerAddress6Block = ((remote.id << 8) | local.id).toString(16);
const localPeerAddress6 = `fe80::${primary ? 1 : 2}:${localPeerAddress6Block}`;
const remotePeerAddress6 = `fe80::${primary ? 1 : 2}:${remotePeerAddress6Block}`;
const frpType = protocol === 'wgfrp' ? (this.gatewayCompare(localGateway, remoteGateway) ? 'frps' : 'frpc') : undefined; const frpType = protocol === 'wgfrp' ? (this.gatewayCompare(localGateway, remoteGateway) ? 'frps' : 'frpc') : undefined;
const ocType = protocol === 'oc' ? (this.gatewayCompareOcserv(local, remote, localGateway, remoteGateway) ? 'server' : 'client') : undefined; const ocType = protocol === 'oc' ? (this.gatewayCompareOcserv(local, remote, localGateway, remoteGateway) ? 'server' : 'client') : undefined;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment