Clamp max_hops to 64 to cover full protocol hop range (0-63)

このコミットが含まれているのは:
Wouter Bijen
2026-03-03 09:05:53 +01:00
コミット 1d190ad944
2個のファイルの変更2行の追加2行の削除
+1 -1
ファイルの表示
@@ -30,5 +30,5 @@ struct NodePrefs { // persisted to file
uint8_t autoadd_config; // bitmask for auto-add contacts config
uint8_t client_repeat;
uint8_t path_hash_mode; // which path mode to use when sending
uint8_t autoadd_max_hops; // 0 = no limit, 1 = direct (0 hops), N = up to N-1 hops (max 63)
uint8_t autoadd_max_hops; // 0 = no limit, 1 = direct (0 hops), N = up to N-1 hops (max 64)
};