We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a2eff9 commit d75d905Copy full SHA for d75d905
2019/23/README.md
@@ -2,7 +2,7 @@
2
3
| Part 1 | Part 2 |
4
|----------|---------|
5
-| `22659` | ` ` |
+| `22659` | `17429` |
6
7
## --- Day 23: Category Six ---
8
2019/23/network.js
@@ -93,8 +93,8 @@ class Network {
93
return { x: nat_packet[0], y: nat_packet[1] };
94
}
95
96
- // @todo Reset NAT packet here?, e.g. `nat_packet = undefined`?
97
- last_nat_sent = nat_packet;
+ // Clone the packet, otherwise, when NIC 0 consumes this packet it modifies this value
+ last_nat_sent = [...nat_packet];
98
idle = IDLE_REST;
99
100
0 commit comments