Skip to content

Commit

Permalink
Check if mesh is enabled before reg info check
Browse files Browse the repository at this point in the history
Signed-off-by: Savolro <[email protected]>
  • Loading branch information
Savolro committed Oct 22, 2024
1 parent b14aac3 commit 1924ac1
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 128 deletions.
4 changes: 4 additions & 0 deletions cli/cli_mesh_peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,8 @@ func allowIncomingResponseToError(
resp.AllowIncomingErrorCode,
identifier,
)
case *pb.AllowIncomingResponse_MeshnetErrorCode:
return meshnetErrorToError(resp.MeshnetErrorCode)
default:
return errors.New(AccountInternalError)
}
Expand Down Expand Up @@ -929,6 +931,8 @@ func denyIncomingResponseToError(
resp.DenyIncomingErrorCode,
identifier,
)
case *pb.DenyIncomingResponse_MeshnetErrorCode:
return meshnetErrorToError(resp.MeshnetErrorCode)
default:
return errors.New(AccountInternalError)
}
Expand Down
Loading

0 comments on commit 1924ac1

Please sign in to comment.