Commit a7034142 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 8afb9835
Pipeline #15763 passed with stages
in 45 seconds
#!/bin/sh
ip rule add pref 60 ipproto udp sport 495 dport 495 lookup main
ip rule del pref 60 ipproto udp sport 495 dport 495 lookup main
npm start
......@@ -42,7 +42,7 @@ setInterval(() => {
const message = JSON.stringify(self);
for (const peer of peers) {
peer.update(self.time);
socket.send(message, config.port, peer.address);
socket.send(message, config.port, `10.200.${peer.id}.${self.id}`);
}
server.update(socket, self, peers);
self.seq++;
......
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