Commit 69fd120
committed
Force genesis server to .1 and fix bind crash on restart
- Genesis server (no seed_peers) always gets 10.64.0.1 regardless of
existing IPAM allocations. Previous code checked IPAM first and used
a stale allocation from earlier runs.
- Add SO_REUSEADDR to HttpServer sockets to prevent "bind: Address
already in use" crash when systemd restarts the service quickly.
- Clean up resolve_tunnel_ip logic: genesis check first, then joining
server path with existing allocation or gossip fallback.1 parent 2140aa0 commit 69fd120
File tree
2 files changed
+23
-18
lines changed- projects/LemonadeNexus/src
- Core
- Network
2 files changed
+23
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 155 | + | |
172 | 156 | | |
173 | | - | |
174 | 157 | | |
175 | 158 | | |
176 | 159 | | |
177 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
| |||
0 commit comments