mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-12 11:52:07 +10:00
Fix direct path override validation
This commit is contained in:
@@ -3091,8 +3091,10 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
|
||||
if (pathLen != null &&
|
||||
pathLen >= 0 &&
|
||||
(pathBytes == null ||
|
||||
!_isPathLenValidForCurrentMode(pathLen, pathBytes))) {
|
||||
!_isPathLenValidForCurrentMode(
|
||||
pathLen,
|
||||
pathBytes ?? Uint8List(0),
|
||||
)) {
|
||||
appLogger.warn(
|
||||
'setPathOverride: invalid path for ${contact.name}: '
|
||||
'pathLen=$pathLen, bytesLen=${pathBytes?.length ?? 0}, '
|
||||
|
||||
Reference in New Issue
Block a user