Commit 7e843648 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 41a4a222
Pipeline #16365 passed with stages
in 26 seconds
......@@ -32,7 +32,7 @@ export class Router implements Hello, PeerQuality {
constructor(public data: RouterData) {
Object.assign(this, data);
this.linkAddress = `10.200.${data.id}.${parseInt(process.env.RAILGUN_ID)}`;
this.subnets = subnets.filter((s) => data.name).map((s) => s.subnet);
this.subnets = subnets.filter((s) => s.router === data.name).map((s) => s.subnet);
}
reset() {
......
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